如果使用过5.2的php artisan make:auth,在使用5.3的时候会发现Logout的使用和以前不一样。
5.3之前:$this->get('logout', 'Auth\AuthController@logout');
5.3:$this->post('logout', 'Auth\LoginController@logout')->name('logout');
对应的,前台也变成了:

get→post的变化。
如果使用过5.2的php artisan make:auth,在使用5.3的时候会发现Logout的使用和以前不一样。
5.3之前:$this->get('logout', 'Auth\AuthController@logout');
5.3:$this->post('logout', 'Auth\LoginController@logout')->name('logout');
对应的,前台也变成了:
get→post的变化。
本文标题:使用篇-Laravel5.3的用户认证
本文链接:https://www.haomeiwen.com/subject/kwfdvttx.html
网友评论