Laravel 5.2: Auth::logout() is not working

前端 未结 8 1441
孤独总比滥情好
孤独总比滥情好 2020-12-16 00:04

I\'m building a very simple app in Laravel 5.2, but when using AuthController\'s action to log out, it just simply doesn\'t work. I have a nav bar which checks

8条回答
  •  春和景丽
    2020-12-16 00:25

    Simply add below route and do not add this inside any route group(middleware):

    Route::get('your-route', 'Auth\AuthController@logout');
    

    Now logout should work as it should in L 5.2 without modifying anything in AuthController.

提交回复
热议问题