I'm new in Laravel. I started new project with Jetstream, and all goes well excepting one thing: CSS file is empty so auth form is looking rawly.
I got public/css/app.css file with needed style code, but for some reason browser receives it as empty
In layout/app.blade.php is declared:
<link rel="stylesheet" href="{{ mix('css/app.css') }}">
I tried to replace it by:
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
But it is not working. Any ideas? Thank you
My Answer:
It seems like you may be experiencing a caching issue with Laravel Mix. Try running the following command in your terminal to clear the cache:
php artisan cache:clear
After clearing the cache, try reloading your page to see if the CSS file is now being properly loaded. If that doesn't work, you can also try running the following command to recompile your assets:
npm run dev
This will recompile your assets and generate a new CSS file. Make sure to reload your page after running this command to see if the CSS file is now being loaded properly.
Rate this post
5 of 5 based on 4668 votesComments