where to put javascript in laravel resources or assets code example
Example: access css and js files inside resources folder in laravel
you have to move js files to public or store into storage and make symlinks.
or you need to create symlinks the resources directory to a public directory(which is not recommended).
1. you need to use the most recommended and effective method of Laravel of using Laravel mix. Please use the link below to read about laravel mix a solution.
2. https://laravel.com/docs/5.6/mix
3. It will allow you to place your js assets into resources directory and make compressed js file in public which will be used by the setup.