我正在寻找一个解决方案…它变得如此令人沮丧.
在Laravel全新安装Lumen之后,我根本无法访问“/”路线.当我尝试,它会抛出一个错误:
@H_403_7@
得到它了! ….
在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
解决方案是在第28行改为public / index.PHP:
$app->run();
至
$app->run($app->make('request'));
不知道为什么,也许你知道.