Skip to content

Commit

Permalink
Update view composer path in AppServiceProvider
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dcblogdev committed May 31, 2024
1 parent 3c76c7e commit fb451b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb451b9

Please sign in to comment.