Skip to content

Commit a3d0f74

Browse files
committed
Move settings category layouts into their own view folder
1 parent b9b5003 commit a3d0f74

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

app/Settings/SettingController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function category(string $category)
2929
// Get application version
3030
$version = trim(file_get_contents(base_path('version')));
3131

32-
return view('settings.' . $category, [
32+
return view('settings.categories.' . $category, [
3333
'category' => $category,
3434
'version' => $version,
3535
'guestUser' => User::getGuest(),
@@ -57,7 +57,7 @@ public function update(Request $request, AppSettingsStore $store, string $catego
5757

5858
protected function ensureCategoryExists(string $category): void
5959
{
60-
if (!view()->exists('settings.' . $category)) {
60+
if (!view()->exists('settings.categories.' . $category)) {
6161
abort(404, 'Category not found');
6262
}
6363
}

0 commit comments

Comments
 (0)