diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 38c135bd..22084759 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -24,6 +24,6 @@ public function register() */ public function boot() { - // + View::share('metaTitle', 'Blade Test'); } } diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 282cefd2..9da21478 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -6,7 +6,7 @@ {{-- Task: edit one file to pass $metaTitle as "Blade Test" to all views --}} -