I was trying to change the background color of the body in the css file but I noticed that it didn't work.

If this is a fresh install of Laravel, you'll want to run npm install. to install all of the front-end assets (css, js etc). If you have never made any changes to the css or js, in a terminal you'll need to run this command: npm run dev or npm run watch. Here is more documentation for Laravel Mix.

You won't want to touch the actual .css file; it will get overwritten whenever the assets compile. Using the commands above will re-compile all of the .scss files into .css.

Hope this helps!

Answer from Damon on Stack Overflow
Discussions

CSS file not being served (Not Found, 404) in HMR
Laravel Mix Version: 0.12 Node Version (node -v): v7.6.0 NPM Version (npm -v): 4.1.2 OS: Ubuntu Mate 16.04 Description: It's weird that when running npm run hot, my css files cannot be found.. ... More on github.com
๐ŸŒ github.com
9
May 25, 2017
Laravel css/js gives 404 but the files exist - Stack Overflow
I'm working in a admin bundle but the css/js is not working. http://d.pr/i/UJHo From the print, bootstrap js/css came from external domain, I tried to call a local bundle file but I got the error.... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Laravel 6 css and js files not found ( net::ERR_ABORTED 404 (Not Found) )
Does this answer your question? Laravel 6.0.3 Not Loading Key Resources App.js or App.css 404 Not Found More on stackoverflow.com
๐ŸŒ stackoverflow.com
Laravel 8 - GET http://localhost:8000/css/app.css net::ERR_ABORTED 404 (Not Found) - Stack Overflow
I can't use the app.css in my application. Every time the server returns following error GET http://localhost:8000/css/app.css net::ERR_ABORTED 404 (Not Found). I use a blade page. More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
GitHub
github.com โ€บ JeffreyWay โ€บ laravel-mix โ€บ issues โ€บ 830
CSS file not being served (Not Found, 404) in HMR ยท Issue #830 ยท laravel-mix/laravel-mix
May 25, 2017 - Laravel Mix Version: 0.12 Node Version (node -v): v7.6.0 NPM Version (npm -v): 4.1.2 OS: Ubuntu Mate 16.04 Description: It's weird that when running npm run hot, my css files cannot be found.. Cannot GET /dist/all.css. The path is change...
Published ย  May 25, 2017
Author ย  ajcastro
Find elsewhere
๐ŸŒ
YouTube
youtube.com โ€บ watch
Fixing 404 Not Found Errors for CSS and JS Files in Laravel - YouTube
Learn how to resolve `404 Not Found` errors for CSS and JS files in your Laravel application using the correct asset helper function.---This video is based o...
Published ย  May 28, 2025
Views ย  22
๐ŸŒ
Reddit
reddit.com โ€บ r/laravel โ€บ everything is invisible! (404's on public and resource folder css files)
r/laravel on Reddit: Everything is invisible! (404's on public and resource folder CSS files)
July 11, 2022 -

I've just created a landing page using a Tailwind tool which exported a .zip file and I want to integrate it with my local Laravel instance. As I've all ready done the tutorials I have created a new Route with blade file (just basically copy/pasted everything from the HTML file as a proof of concept - it's my first time).

Anyway the page shows but the next challenge is defining the links to the CSS and JS files. I'm a little confused because my install has a 'resources/' folder with css and js folders... and also a 'public' folder... (but isn't css and js public files anyway). In either case I have tried to upload files to both and test them but they don't work... as in when I go directly to either link e.g. http://127.0.0.1:8000/public/robots.txt I just get a 404 page...

https://share.getcloudapp.com/GGuKzG76

This also accounts for resources view... like basically everything is 404... for files that should be public.. I mean I know php files are hidden but... surely if I can't see these js/css files in my browser then my browser won't be able to render them either?

P.S. Also how do I do a shortcut view to the public/ or resources/ folder? Like in Wordpress I used <?php get\_template\_directory\_uri(); ?> or something like that - so I'm just looking for something that is similar with Laravel which is not hard coded.

Thank you

๐ŸŒ
Laratech
laratech.jp โ€บ posts โ€บ laravel-app-404 โ€บ en
How to Resolve 404 NOT FOUND for app.js and app.css in ...
The Laravel asset() function looks for files based on public/. ... As mentioned earlier, if CSS and JS files are properly located under public, there should be no 404 errors.
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 68498610 โ€บ laravel-8-404-css-file-not-found-even-after-file-is-loaded
html - Laravel 8: 404 CSS file not found, even after file is loaded? - Stack Overflow
July 23, 2021 - Still somehow I'm getting this following error, it's trying to find the CSS files in http://127.0.0.1:8000/admin/assets/css whereas I've redirected them to http://127.0.0.1:8000/backend/assets/css. I tried to work on .htaccess, as I think that's where from the problem is occurring, I've enabled RewriteEngine in .htaccess, still no luck. ... <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder...
๐ŸŒ
Web Hosting Hub
help.webhostinghub.com โ€บ hc โ€บ en-us โ€บ articles โ€บ 15213503896343-Laravel-404-Error
Laravel 404 Error โ€“ Web Hosting Hub
June 10, 2023 - If a route definition is missing or misconfigured, Laravel will not be able to match the requested URL to a valid route, resulting in a 404 error. Another cause can be related to missing or incorrect file or resource references.
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 69075931 โ€บ 404-error-importing-css-js-files-into-laravel-8
php - 404 error importing css/js files into laravel 8 - Stack Overflow
But I'm not sure how you'd go about changing these values ... The public folder should be the root of your domain. Its best to create a domain for your app in your hosts file, and point it to the Laravel public folder.
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 50551621 โ€บ laravel-nginx-css-js-404-not-found
Laravel + NGINX CSS/JS 404 not found - Stack Overflow
May 27, 2018 - When I go to: http://<my-ip>/crm/ all is working great, I get the Laravel welcome page, all js and css are loading correctly. When I go to http://<my-ip>/crm/register - I get 404 for css and js.
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 68837619 โ€บ laravel-images-javascript-and-css-404-error
http status code 404 - Laravel Images , Javascript and Css 404 error - Stack Overflow
August 18, 2021 - per this thread stackoverflow.com/questions/24784606/โ€ฆ commone issues are mod rewrite not enabled or allowoverrides not configured properly in aapche.