NotFoundHttpException with Lumen NotFoundHttpException with Lumen laravel laravel

NotFoundHttpException with Lumen


The problem was solved by changing the

$app->run();

in /public/index.php to

$request = Illuminate\Http\Request::capture();$app->run($request);


On your index.php file. Change this line

$app->run();

Into:

$app->run($app->request);

Update

Using make method is faster than accessing class alias via array access.

This one also works:

$app->run(    $app->make('request'));