Skip to content

Commit 8a30b25

Browse files
authored
Merge pull request #53 from yajra/patch-directive
Fix blade directives on Laravel 5.3
2 parents 07b4e3c + 715cd7e commit 8a30b25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ public function boot()
7171
}
7272

7373
Blade::directive('widget', function ($expression) {
74-
return "<?php echo app('arrilot.widget')->run{$expression}; ?>";
74+
return "<?php echo app('arrilot.widget')->run({$expression}); ?>";
7575
});
7676

7777
Blade::directive('asyncWidget', function ($expression) {
78-
return "<?php echo app('arrilot.async-widget')->run{$expression}; ?>";
78+
return "<?php echo app('arrilot.async-widget')->run({$expression}); ?>";
7979
});
8080

8181
Blade::directive('widgetGroup', function ($expression) {
82-
return "<?php echo app('arrilot.widget-group-collection')->group{$expression}->display(); ?>";
82+
return "<?php echo app('arrilot.widget-group-collection')->group({$expression})->display(); ?>";
8383
});
8484
}
8585

0 commit comments

Comments
 (0)