Have you checked the .env file to make sure it’s all the same. If your using the env_url and it’s different in either env files then it may point to the wrong location. Also how are you calling the app.js and app.css
Project wont load files in public
Hi, first post here, forgive me if it's a beginner mistake. I was working on a project on my laptop with the most recent Laravel version. When I'm on my laptop and I run php artisan serve, my website comes out perfectly with my css and js working. When I do the same thing on my pc, no css and js is loaded, all I have is 404 errors for all my files which are correctly in the public folder, generated by npm run dev.
Here some infos, both PC and laptop are on Windows 10, running XAMPP with the same httpd.conf. On both machines I did the same setup, Composer Install Laravel, composer install in the root of project, npm install, artisan generate:key, artisan migrate --seed, all my data is OK.
It is the first time I'm using Laravel and Php since I'm a student and this bug seems to elude my teachers, so it is possible that I'm missing some key points here. I can't change the structure of project that much since it is a group project with source control, I do not want to break the project of the other members of my team since it's all working great on their machine. I think the issue is maybe with my pc rather than the project since it's working perfectly fine in my deployment server, laptop machine and my teammates PCs too. I didn't find anything helpful in that matter on StackOverflow or here so I thought I'll be making my own post for that.
Any help would be appreciated and if you need more info do not hesitate to tell me so. Thank you !
UPDATE AND SOLUTION : One of my teacher just got back to me with the solution. It turns out the path of my project had my name in it, which has the special char : 'é'. Once I moved my project to another Path without any special char (C:/Projects), my css and js loaded without any issue. Thanks to @cronix and @skoobi for their help also
Please or to participate in this conversation.