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

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

    This should be the content of your constructor in AuthController

    $this->middleware('web');
    $this->middleware('guest', ['except' => 'logout']);
    

提交回复
热议问题