How do you import jQuery into a Laravel project properly?
Does a fresh installation of Laravel already come with jQuery or do I have to install it with npm or something? In my public/js folder I created a script.js file and tried alerting something but it didn't work. So in my footer.blade.php I imported jQuery via CDN as well as importing my script.js file with <script src="{{asset('js/script.js'}}"></script>and although it works, I can't help but feel this is redundant.
But what if I use jQuery instead of Vue? For the reason being I haven't yet a good grasp of Vue. Also, when installing plugins with npm install, how do I bring it into my application?
I just read it. Thanks but one more question though. Where should I store gulpfile.js? I installed the plugin I mentioned earlier as well as jQuery with npm install.