I'm using Laravel 5.6 and trying to define a blade directive (in the boot()
method of the service provider):
Blade::directive('hello', function () {
return "Hello, World!";
});
But in my views, when i write @hello
it shows @hello
instead of "hello world" as it should.
I've done artisan view:clear
(and cache:clear
too) but still no result.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2FMugMq
via IFTTT
Aucun commentaire:
Enregistrer un commentaire