The short answer is no because the blade files aren't served directly as static assets the way JS and CSS files are, they're compiled into more basic php templates, which are still not served directly because dynamic data has to be injected into them... but js and css files are served directly by the webserver, not parsed by php.
Oct 15, 2016
3
Level 1
Extend Laravel for {{}} in js,css and php files
Hello,
i've got a quick question.
Is it possible to extend Laravel to use the {{ URL::to() }} {{ URL:asset() }} etc which can be done by {{}} also in blain .php files, .js and .css files? Actually it's just working in .blade.php files.
Thanks
Please or to participate in this conversation.