I just want an alert to work and then I will go on my own, but when I write alert()
in my recources/js/app.js
it doesn't work, but my scss works, I ran npm run watch
doesn't help, what to do, and why I can't find any information on google on just how to use js on laravel? :/
my mix file
my js file
Mix is just compiling the files, they aren't automatically injected into your blade files. Just take a look at your blade file, you should see something like
<script src="{{ asset('js/app.js') }}"></script>
and
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With