简体   繁体   中英

CSS and JS files is not loading in Laravel

My application is on the server, and I have tried all the solutions. But my Laravel app is still not loading CSS and JS files in main.blade.php when my CSS files are in public/assets_setup/css/style.css.` I even made file changes, but page changes are not showing in inspect, and it's the same.

Below is my main.blade.php file which all links are included.

https://i.stack.imgur.com/zYbcW.png

Try this code

<link rel="stylesheet" type="text/css" href="/assets_setup/css/style.css">

or

<link rel="stylesheet" type="text/css" href="{{ asset('/assets_setup/css/style.css') }}">

We don't write public in laravel

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM