RouteCollection.php第161行中的NotFoundHttpException [英] NotFoundHttpException in RouteCollection.php line 161
本文介绍了RouteCollection.php第161行中的NotFoundHttpException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
http://localhost/laravel.dev/auth/login>在RouteCollection.php第161行中出现错误NotFoundHttpException
http://localhost/laravel.dev/auth/login> bringsup error NotFoundHttpException in RouteCollection.php line 161
Route.php
Route.php
Route::get('auth/login', 'Auth\AuthController@getLogin');
Route::post('auth/login', 'Auth\AuthController@postLogin');
Route::get('auth/logout', 'Auth\AuthController@getLogout'); // Registration routes...
Route::get('auth/register', 'Auth\AuthController@getRegister');
Route::post('auth/register', 'Auth\AuthController@postRegister');
Route::controllers([ 'password' => 'Auth\PasswordController', ]);
推荐答案
这听起来很有趣,但是今天我遇到了同样的问题,并发布了一个问题,直到我进行迁移php artisan migrate
并意识到它可以正常工作为止.尝试迁移可能会有帮助
It might sound funny but today I had the same problem and posted a question until i did migration php artisan migrate
and realized it was working. Try migration it might help
这篇关于RouteCollection.php第161行中的NotFoundHttpException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文