Laravel 5.5 : include css , js and image for boostrap theme .

Home  >>  Tutorials  >>  Laravel  >>  Laravel 5.5 : include css , js and image for boostrap theme .

Laravel 5.5 : include css , js and image for boostrap theme .

10
Oct,2017

0

Put your assets in the public folder

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

And then called it using Laravel

 

{{ URL::asset('js/scrollTo.js'); }} // Generates the path to public directory public/js/scrollTo.js

{{ URL::asset('css/css.css'); }}   // Generates the  path to public directory public/css/css.css
{{ URL::asset('image/one.png'); }} //Generates the  path to public directory public/image/one.png

or
{{ HTML::script('js/scrollTo.js'); }} // Generates the  path to public directory public/js/scrollTo.js

{{ HTML::style('css/css.css'); }} // Generates the path to public directory public/css/css.css
 {{ HTML::style('image/one.png'); }} //Generates the  path to public directory public/image/one.png

Leave a Reply

Your email address will not be published. Required fields are marked *