$ Is Not Define In Laravel

[Solved] $ Is Not Define In Laravel | Php - Code Explorer | yomemimo.com
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

Answers related to $ is not define in laravel

Code Explorer Popular Question For Php