Sky Sky - 1 year ago 88
PHP Question

Not found page in Lumen after install

I just installed

but when I head to its public directory

Sorry, the page you are looking for could not be found.

will appear.

I checked
and changed

$app->get('/', function () use ($app) {


$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 :(

Sky Sky
Answer Source

In /public/index.php change




This also works too (faster):

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download