Move settings category layouts into their own view folder

This commit is contained in:
Lachlan Tripolone 2024-10-11 10:42:48 +11:00
parent b9b5003239
commit a3d0f7478f
4 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class SettingController extends Controller
// Get application version
$version = trim(file_get_contents(base_path('version')));
return view('settings.' . $category, [
return view('settings.categories.' . $category, [
'category' => $category,
'version' => $version,
'guestUser' => User::getGuest(),
@ -57,7 +57,7 @@ class SettingController extends Controller
protected function ensureCategoryExists(string $category): void
{
if (!view()->exists('settings.' . $category)) {
if (!view()->exists('settings.categories.' . $category)) {
abort(404, 'Category not found');
}
}