NotFoundHttpException with Lumen

前端 未结 2 1469
我在风中等你
我在风中等你 2020-11-28 03:40

I\'ve just installed Lumen on Windows and unfortunately I\'m getting the following error:

NotFoundHttpException in Application.php line 1093:

in Application         


        
2条回答
  •  情书的邮戳
    2020-11-28 04:19

    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')
    );
    

提交回复
热议问题