I have the following problem. I started working with the Laravel framework and I'm using the PhpStorm IDE.
Everything works fine if I use the PHP built-in webserver. I execute the following command in the cmd:
C:\phpProjects\project03>php -S localhost:8000 -t public
Everything works fine with this local server. I can access the project in the browser. The welcome page works with http://localhost:8000/
in the browser and a test route "foo" which is a simple "Hello World" works with http://localhost:8000/foo
.
But I don't want to start a test server manually. This is why I want to use the PhpStorm's built-in webserver.
The Welcome Page works fine with http://localhost:63342/project03/
but every other route like "foo" which I want to access with http://localhost:63342/project03/foo
leads to a "404 Not Found PhpStorm 2018.2" error.
Does anyone have an idea what the problem could be?