Laravel does not evaluate the curly brackets when including .js file - development

Laravel does not evaluate the curly brackets when including .js file

I have a js file with the following script

alert("");

I used the .js file and include it in my blade view

<script type="text/javascript" src=></script>

It does not evaluate the route command.

But if I write the script in the blade view. It does evaluate the codes inside the curly brackets.



from Laravel Questions and Answers https://laravelquestions.com/laravel/laravel-does-not-evaluate-the-curly-brackets-when-including-js-file/
via Lzo Media

Comments

Popular posts from this blog

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"? - development

CORS issue between web/android/ios

Angular.js ng-click with mouse middle button