laravel - exit error when remember_token is not used, how to solve it?
某草草
某草草 2017-05-16 16:47:16
0
1
509
  • laravel 5.4 version

  • Using the built-in Auth, the "remember_token" field cannot be used for various reasons

  • When logging out, an error that the remember_token cannot be found will be reported

  • The current solution is to adjust the "logout()" of "Illuminate/Auth/SessionGuard.php":

if (! is_null($this->user) && ! empty($user->getRememberToken())) {
            $this->cycleRememberToken($user);
        }
  • Are there any other options?

某草草
某草草

reply all(1)
阿神

Wouldn’t it be better to use this route? Route::get('logout', 'AuthLoginController@logout')->name('logout');

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template