Css and Js not loading: ERR_INVALID_HTTP_RESPONSE

I'm creating a new Laravel project (v10.18), installing the latest version of Filament v3, following the Installation section of the docs, and running the server with 'php artisan serve', but when I open the admin panel, the CSS and js files don't load and throw a 'net::ERR_INVALID_HTTP_RESPONSE' error (pic 1). So from what I could gather online, it seems that the Laravel 'php artisan serve' server can't load files from the 'public' directory for some reason, so instead I try with 'php -S localhost:8000 -t public' and now the files load fine, but now Livewire throws a 'net::ERR_ABORTED 404 (Not Found)' error (pic 2). Does anybody know what can I do?
image.png
image.png
Was this page helpful?