抱歉,找不到您要查找的页面.(1/1) NotFoundHttpException in laravel 5.4.28.



app\Http\routes 中的 php 文件.php这是我的路由代码

Route::group(['middleware' => ['web']], function (){
//getDashboard
Route::get('dashboard', [
'as'    => 'get.register',
'uses'  => 'dashboardController@getCreate'
]);

});

当我转到我的网址时 http://localhost/crudlara/public/dashboard 它显示的错误

抱歉,找不到您要查找的页面。 (1/1( NotFoundHttpException

有人可以帮我想出这件事吗? 在Laravel版本5.2.10中,IM使用的路由代码运行良好。

任何帮助都非常感谢。蒂亚

因为您使用的是 5.4,所以您应该将所有路由放入routes/web.php文件中并删除'middleware' => ['web']部分。

相关内容

  • 没有找到相关文章

最新更新