When you attempt to browse to the page, what shows up in DevTools -> Network? Is it trying to fetch the assets and it's throwing an error? If so, which HTTP status code? Is the fetch just not happening at all? We'll need more data than just "it's not working" to help you out here.
php artisan serve doesn't load assets anymore
Hey, I have an inexplicable problem with Laravel (10) for which I haven't been able to find a solution on google or here in the forum.
I have already implemented 3 projects with Laravel and everything has worked flawlessly so far. A few days ago I wanted to create a new Laravel project with Livewire - everything set up, styling included, php artisan serve, let's go. Unfortunately, the styling and Js were not applied. Instead I get ERR_INVALID_HTTP_RESPONSE on all assets. For the sake of transparency, I also loaded this template http s:// github.com/themesberg /volt-laravel-dashboard - which, however, raises the same problem. Even older projects no longer load any assets, although I haven't changed anything on them. So in summary: my php artisan serve command doesn't seem to load any assets on my local machine (Win11) for any Laravel project. It only works with php -S localhost:8000 -t public .
I checked config, cache, .env etc. I don't think that this is the problem (also because no project works anymore)
I also use XAMPP on my machine. But I made no changes to php version oder apache config whatsoever in last months.
I would still like to continue using php artisan serve and find out why the named problem can suddenly exist across all projects. I have all my projects under C:\Dev\Projects and I made no major changes the last days. The problem wasn't there on one day and on the next day no project was working properly with php artisan serve anymore.
I would be very grateful for tips or solution ideas. Take the htt ps:// github.com/themesberg /volt-laravel-dashboard as example codebase.
Please or to participate in this conversation.