I want to setup a PHP project with IntelliJ 2019.2 Ultimate and downloaded a clean Laravel 5.8 project. I also created a Run Configuration in IntelliJ using the "PHP Built-in Web Server". When I run that, the server starts without any error messages. The server responds with "404 Not Found The requested resource / was not found on this server.
" though when I hit http://localhost/ in my browser.
In routes/web.php
I defined a route for /
though:
<?php
Route::get('/', function () {
return view('welcome');
});
Why isn't the welcome view isn't returned here? When I create a index.php
though, it is getting returned from the server.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Hkbqet
via IFTTT
Aucun commentaire:
Enregistrer un commentaire