From fb451b9d8c71c68f45d6d9c2ed83af4260d5c4a1 Mon Sep 17 00:00:00 2001 From: David Carr Date: Fri, 31 May 2024 17:42:06 +0100 Subject: [PATCH] Update view composer path in AppServiceProvider The directory path to the view composer in the AppServiceProvider has been updated. This change ensures that the service provider references the correct view layout when the application's authorization check is performed. --- app/Providers/AppServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 6bbac34..be94b3a 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -46,7 +46,7 @@ public function boot(Request $request, UrlGenerator $url): void DB::prohibitDestructiveCommands(app()->isProduction()); - view()->composer('layouts.app', function () { + view()->composer('components.layouts.app', function () { if (auth()->check()) { foreach (Setting::all() as $setting) { //override config setting