[Vuejs]-Laravel Vue Spa – Custom js script refusing to work

0👍

You should know that Laravel is using Mix to compile Js code (based on Webpack).
Therefore I recommend you to load the main.js file using mix and import the Jquery directly in your bootstrap.js without using CDN.
ex:

mix.scripts(['resources/js/main.js'], 'public/js')

Also, you have to load Jquery before any other scripts.

Leave a comment