Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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!
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #file #laravel #live #laravel #project
ADD COMMENT
Topic
Name
9+1 =