Laravel stylesheets and javascript don’t load for non-base routes

For Laravel 4 & 5:

<link rel="stylesheet" href="https://stackoverflow.com/questions/15232600/{{ URL::asset("assets/css/bootstrap.min.css') }}">

URL::asset will link to your project/public/ folder, so chuck your scripts in there.


Note: For this, you need to use the “Blade templating engine“. Blade files use the .blade.php extension.

Leave a Comment