Question : $ is not define in laravel
Answered by : winwinmaw
We must delete "defer attribute"
->app.blade.php //this is wrong <script src="{{ asset('js/app.js') }}" defer></script> //this is correct <script src="{{ asset('js/app.js') }}" ></script> ->resources>js>app.js window.$ = require("jquery") window.bootstrap = require("bootstrap");
Source : | Last Update : Mon, 16 May 22