php – 刚安装Lumen并得到NotFoundHttpException

前端之家收集整理的这篇文章主要介绍了php – 刚安装Lumen并得到NotFoundHttpException前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在寻找一个解决方案…它变得如此令人沮丧.
在Laravel全新安装Lumen之后,我根本无法访问“/”路线.当我尝试,它会抛出一个错误
NotFoundHttpException in RoutesRequests.PHP line 443:

in RoutesRequests.PHP line 443
at Application->handleDispatcherResponse(array('0')) in RoutesRequests.PHP line 380
at Application->Laravel\Lumen\Concerns\{closure}() in RoutesRequests.PHP line 629
at Application->sendThroughPipeline(array(),object(Closure)) in RoutesRequests.PHP line 382
at Application->dispatch(null) in RoutesRequests.PHP line 327
at Application->run() in index.PHP line 28
@H_403_7@ 得到它了! ….

解决方案是在第28行改为public / index.PHP

$app->run();

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

不知道为什么,也许你知道.

猜你在找的PHP相关文章