In my project I use Auth login, everything works fine until I try to log out:
Auth::logout();
I use the custom field name herrinerToken instead of the remember_token default value. In my /user.php model, I edited the getRememberToken () function:
public function getRememberTokenName()
{
return 'herrinerToken';
}
when I try to log out, I get a message:
SQLSTATE [42S22]: Column not found: 1054 Unknown column 'remember_token' in 'field list' (SQL: update gebruikersset herrinerToken= a3eYy1IIbX1FfPhPgmYNTNLwkE7A43vgqwpSU2B5b3EFNHl0ayYF1vUSGCbc remember_token= a3eYy1IIbX1FfPhPgmYNTNLwkE7A43vgqwpSU2B5b3EFNHl0ayYF1vUSGCbc where id= 6 )
So it looks like it is trying to update tu and remember_token and herrinerToken, but I want to update the herinner_token field. What do I need to configure only to update the herrinerToken field, and not the remember_token field?
source
share