I\'m trying to use laravel blade templates including some javascript code into child view.
I have my mail app.blade.php file, where is placed string
I had this same problem which seemed more to do with the js files being loaded in with the defer attribute.
I was getting the same console warning about $ not being defined.
So I tested this notion with...
Which then worked, so I assume it's to do with defer (using Firefox Developer Edition on Linux Mint).
Anyway, a good reason to put all my scripts into proper js files ;-)