Skip to content

Commit c4cc20c

Browse files
authored
Update SharedDataServiceProvider.php
1 parent 2ece664 commit c4cc20c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/SharedDataServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function register()
3838
});
3939

4040
$this->app->extend('blade.compiler', function (BladeCompiler $bladeCompiler) {
41-
$bladeCompiler->directive($this->app['config']['shared-data.blade_directive.name'], function () {
41+
$bladeCompiler->directive($this->app['config']['shared-data.blade_directive.name'] ?? 'shared', function () {
4242
return '<?php echo app(\\'.SharedData::class.'::class)->render(); ?>';
4343
});
4444

0 commit comments

Comments
 (0)