I just installed Lumen
but when I head to its public directory localhost/lumen/public
,
Sorry, the page you are looking for could not be found.
will appear.
I checked app\Http\routes.php
and changed
$app->get('/', function () use ($app) {
to
$app->get('/lumen/public/', function () use ($app) {
And it worked.
But this is not the thing I want. In Laravel the '/'
works perfectly. How can I make Lumen work with '/'
?
BTW when I use php artisan serv
, '/'
works but only in artisan serv :(