Answers for "js file not found in laravel on live laravel project"

0

js file not found in laravel on live laravel project

All assets should be placed in the public folder

public/js
public/css
public/fonts
public/images

You can access the assets using the asset() method or the Laravel HTML helper methods HTML::script and HTML::style. i.e to include Javascript file:

 - <script src="{{ asset('js/yourfile.js') }}"></script>

 - {{ HTML::script('js/yourfile.js') }}

Hope this helps!
Posted by: Guest on August-21-2021

Code answers related to "js file not found in laravel on live laravel project"

Code answers related to "Javascript"

Browse Popular Code Answers by Language