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中,使用的路由代码运行良好。
非常感谢任何帮助。 TIA
答案 0 :(得分:3)
因为您使用的是5.4,所以您应该将所有路由放入routes/web.php
文件并删除'middleware' => ['web']
部分。