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