我有我的工作laravel 5项目。重置笔记本电脑后,我必须安装所有软件,包括Laravel。
之后,我复制&粘贴项目我保留在备份中的内容以继续工作。 我执行了以下命令:
composer update
composer install
但是当我尝试访问网址时,我在浏览器中收到以下错误。
(例如:http://localhost/IntelliKid/public/)
Sorry, the page you are looking for could not be found.
NotFoundHttpException in RouteCollection.php line 161:
in RouteCollection.php line 161
at RouteCollection->match(object(Request)) in Router.php line 802
at Router->findRoute(object(Request)) in Router.php line 670
at Router->dispatchToRoute(object(Request)) in Router.php line 654
at Router->dispatch(object(Request)) in Kernel.php line 246
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 132
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99
at Kernel->handle(object(Request)) in index.php line 54
答案 0 :(得分:3)
请尝试以下步骤:
Type" php artisan serve"并点击输入。
注意:它会说" Laravel开发服务器在http://localhost:8000"
然后你就可以运行这个网址" http:// localhost:8000"而是" http:// localhost / IntelliKid / public /"
现在可以找到您要查找的页面。
干杯:)