Home > Blockchain >  Laravel 9 - GET http://localhost:8000/css/app.css net::ERR_ABORTED 404 (Not Found)
Laravel 9 - GET http://localhost:8000/css/app.css net::ERR_ABORTED 404 (Not Found)

Time:06-19

I can't use the app.css in my application I use <link href="{{asset('css/app.css')}}" rel="stylesheet" type="text/css">

CodePudding user response:

By default the asset() helper starts with the /public folder. If you have already taken this into account then the problem will only be that you have run small npm run dev.

public/
    |--- css/app.css
    |---js/

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

CodePudding user response:

Check your asset url in .env file. If it is missing add it in your .env file

ASSET_URL=public

and run php artisan config:cache.

  • Related