I know Blade tags can be changed using for example:
Blade::setContentTags('<%', '%>');
Blade::setEscapedContentTags('<%%', '%%>');
However - there is a question, where to do it to make sure it will work in all cases? At the beginning I had this in routes.php
but after caching routes or (not sure) upgrading to the newest Laravel 5.1.12 (from about 5.1.8) it doesn't work any more.
I've moved it boot
method in AppServiceProvider
and I thought it will solve the issue, however for some views (after clearing all cache files), there is still a problem - it seems like boot
was not launched for them.
The question is - where to change those tags to make 100% sure it will work for all templates? At the moment I left it in both routes.php
and AppServiceProvider
but it's not a good solution to duplicate code this way.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1hybPu6
via IFTTT
Aucun commentaire:
Enregistrer un commentaire