Laravel blade works fine when i place the code in footer section at the bottom. But when i move the code into a custom js file the laravel blade is not working. I am not able to figure out what is the issue.
$(document).ready(function() {
var url = "{!! url('/') !!}";
alert(url);
});
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2L01ne1
via IFTTT
Aucun commentaire:
Enregistrer un commentaire