用户在成功登录后重定向到主页后注销。即使是先前的auth过滤器也在路由上失败。我正在使用ollieread / multi-auth插件。
public function postLogin()
{
if (\Auth::biz()->attempt(\Input::only(array('email', 'password')), \Input::get('persist', 'no') == 'yes')) {
// dd(Auth::biz()->check()); returns true
return \Redirect::route('main.home');
} else {
return \Redirect::back()->withInput()->with('loginFail', true);
}
}
Route::get('/{verify_token?}', array('as' => 'main.home', 'uses' => 'MainController@getIndex'));
public function getIndex($verify_token = '')
{
dd(\Auth::biz()->check()); // returns bool(false)
return \View::make('main.pages.home', array($emailVerified));
}