当我使用remember_token

时间:2017-09-15 17:37:08

标签: laravel-5

我有一个奇怪的问题,我似乎无法完成退出Laravel。它似乎将令牌与数据库连接混淆。在这种情况下mysql

应该是UW6c1Jyh4bhuOw36a5DDKWrjjlaNqes4rPf4U7rst1QcOyhjC8KQaD2ZhCAA

编辑:请注意,我的remember_token列也永远不会填充

编辑2:我没想过尝试登录"记住我"选择。我这样做时会看到同样的错误。

我开始深入研究其中的一些功能,无法弄清楚混乱的来源。我的config / database.php文件没有任何问题,因为我登录了一次"记住我"未经检查。

退出功能:

public function webLogout( ) {
    Auth::logout();
    die('test');
    return redirect('/');
}

错误..

InvalidArgumentException in DatabaseManager.php line 137: Database [UW6c1Jyh4bhuOw36a5DDKWrjjlaNqes4rPf4U7rst1QcOyhjC8KQaD2ZhCAA] not configured.
in DatabaseManager.php line 137
at DatabaseManager->configuration('UW6c1Jyh4bhuOw36a5DDKWrjjlaNqes4rPf4U7rst1QcOyhjC8KQaD2ZhCAA') in DatabaseManager.php line 100
at DatabaseManager->makeConnection('UW6c1Jyh4bhuOw36a5DDKWrjjlaNqes4rPf4U7rst1QcOyhjC8KQaD2ZhCAA') in DatabaseManager.php line 71
at DatabaseManager->connection('UW6c1Jyh4bhuOw36a5DDKWrjjlaNqes4rPf4U7rst1QcOyhjC8KQaD2ZhCAA') in Model.php line 1016
at Model::resolveConnection('UW6c1Jyh4bhuOw36a5DDKWrjjlaNqes4rPf4U7rst1QcOyhjC8KQaD2ZhCAA') in Model.php line 982
at Model->getConnection() in Model.php line 846
at Model->newBaseQueryBuilder() in Model.php line 807
at Model->newQueryWithoutScopes() in Model.php line 490
at Model->save() in EloquentUserProvider.php line 86
at EloquentUserProvider->updateRememberToken(object(User), 'UW6c1Jyh4bhuOw36a5DDKWrjjlaNqes4rPf4U7rst1QcOyhjC8KQaD2ZhCAA') in SessionGuard.php line 534
at SessionGuard->cycleRememberToken(object(User)) in SessionGuard.php line 494
at SessionGuard->logout() in AuthManager.php line 294
at AuthManager->__call('logout', array()) in Facade.php line 221
at AuthManager->logout() in Facade.php line 221
at Facade::__callStatic('logout', array()) in AuthenticateController.php line 60
at Auth::logout() in AuthenticateController.php line 60
at AuthenticateController->webLogout()
at call_user_func_array(array(object(AuthenticateController), 'webLogout'), array()) in Controller.php line 55

0 个答案:

没有答案