Skip to content

Commit

Permalink
Update SharedDataServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hivokas authored Jan 29, 2021
1 parent 2ece664 commit c4cc20c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/SharedDataServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<?php echo app(\\'.SharedData::class.'::class)->render(); ?>';
});

Expand Down

0 comments on commit c4cc20c

Please sign in to comment.