I ran the php server on cmd using php -S localhost:8080, like this:

And I got this problem opening the localhost:

What do I supposed to do?
I was missing index.php in the root folder.
This error also occurs when you have a path with the same name as a directory in the public folder:
Definition of path in the file routes.php
Route::get('Glaciares',function(){
return view('Principal.Glaciares.Acerca');
});
Public folder

I got the same problem which occurred by running the php -S localhost:8002 in the wrong directory.
Project/src/ -> caused the error
Project/src/public -> Solved
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With