diff --git a/src/Providers/SharedDataServiceProvider.php b/src/Providers/SharedDataServiceProvider.php index bedb4e5..b204f1d 100644 --- a/src/Providers/SharedDataServiceProvider.php +++ b/src/Providers/SharedDataServiceProvider.php @@ -38,7 +38,7 @@ public function register() }); $this->app->extend('blade.compiler', function (BladeCompiler $bladeCompiler) { - $bladeCompiler->directive($this->app['config']['shared-data.blade_directive.name'], function () { + $bladeCompiler->directive($this->app['config']['shared-data.blade_directive.name'] ?? 'shared', function () { return 'render(); ?>'; });