So this is strange. My login, register work fine but when my user is logged in, the dropdown menu that appears when clicking on the users avatar in the top right corner does not work. No dropdown menu appears when clicking here...
There are no errors in my console so I am a little confused.
Furthermore, I have noticed that if I include the js/app.js file that is created for me when running gulp 2 times in the footer, then the dropdown works, but then my registration breaks....
So one thing I did not realize was all the default scripts that were being loaded already through my js/app.js folder...
I had to remove jquery and bootstrap from the top of my page as well as a few other scripts and it works fine now...
@jpeterson579 I did the same thing as you did and after commenting jquery and bootstrap js files the dropdown on my site started working.
Can anyone please tell me why is it happening and how should I deal with this issue other than the current solution of removing and commenting the jquery and bs files.
@chiragchaudhari97 Same thing here solved it (removing references to jquery and boostrap.js in my app.blade.php file)
If you read what exactly @jpeterson579 was saying, it's that basically jquery and bootstrap are already loaded in the app.js file (probably due to webpack compilation), so basically when you load it again - you're essentially over-riding / over-writing the existing scripts - and that's the core reason it's not working .
If, like me, your modals filled with jquery stopped working with just all.js, simply remove the refer attribute from <script src="{{ asset('js/app.js') }}" defer></script>, that is, leave it as <script src="{{ asset('js/app.js') }}"></script>at the top of your scripts