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

前端 未结 8 1465
孤独总比滥情好
孤独总比滥情好 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:14

    add this line in routes.php file Route::get('auth/logout', 'Auth\AuthController@getLogout'); and add this in your view Logout it works fine for me

提交回复
热议问题