目前我有
Route::group(['mIDdleware' => 'web'],function () { Route::auth();});
我知道Route :: auth()是添加所有路由的快捷方式.
我应该自己指定路线而不是使用快捷方式吗?
Route::auth()
实现. 您必须手动指定所有路由
// Authentication Routes...$this->get('login','Auth\AuthController@showLoginForm');$this->post('login','Auth\AuthController@login');$this->get('logout','Auth\AuthController@logout');// Password reset Routes...$this->get('password/reset/{token?}','Auth\PasswordController@showresetForm');$this->post('password/email','Auth\PasswordController@sendresetlinkEmail');$this->post('password/reset','Auth\PasswordController@reset');
我认为这是一个相当普遍的事情,想要这样做会很好,如果auth方法有一个参数说没有寄存器也许你可以向项目提交拉动请求.
总结以上是内存溢出为你收集整理的php – 从Laravel身份验证中排除路由全部内容,希望文章能够帮你解决php – 从Laravel身份验证中排除路由所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)