Solved: Laravel CSS js not loading 404 not found

When we create a new project in laravel php framework, at that time when we create a new layout or direct pages, Sometimes CSS or js are not loaded from the resources folder.

So simply we need to move all static CSS, Js to public folder then to do this code.

Use like this but must keep your files under the public folder.

<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}"> 

the public folder should have css folder or its file. like public/css/bootstrap.min.css use same this for js like.

<script src="{{ asset('js/bootstrap.min.js') }}"></script>

For more info go through this URL

https://stackoverflow.com/questions/59846833/laravel-6-css-and-js-files-not-found-neterr-aborted-404-not-found/65250356#65250356

Leave a Comment