Php Laravel登录指向auth/login,但我还没有设置它

Php Laravel登录指向auth/login,但我还没有设置它,php,laravel,authentication,laravel-5,Php,Laravel,Authentication,Laravel 5,使用普通L5 auth控制器等建立登录和注册系统 注册有效,但登录时我会收到: NotFoundHttpException in RouteCollection.php line 161: 错误 我的路线设置如下: Route::get('/login', 'Auth\AuthController@getLogin'); Route::post('/login', 'Auth\AuthController@postLogin'); Route::get('/logout', 'Auth\Aut

使用普通L5 auth控制器等建立登录和注册系统

注册有效,但登录时我会收到:

NotFoundHttpException in RouteCollection.php line 161:
错误

我的路线设置如下:

Route::get('/login', 'Auth\AuthController@getLogin');
Route::post('/login', 'Auth\AuthController@postLogin');
Route::get('/logout', 'Auth\AuthController@getLogout');
我的表格开始时:

<form class="form-horizontal" role="form" method="POST" action="/login">

但它仍在尝试转到auth/login。已经搜索了所有代码,但不知道它在哪里尝试这样做


验证工作非常正常,会抛出错误,但无法正确处理。

将您的路径更改为:
route::post('/post login',Auth)\AuthController@postLogin');有效,原因是什么?这是因为路由与您要查找的url混淆。