I am using Laravel 5.1. I am trying to use the Blade directive ( @extend ) with my custom Blade directive.
Blade::directive('base', function() use ($theme) { return "@extends($theme)" });
However, the above code only literally displays the content ( @extends($theme) )
source share