Laravel 5 authentication without remember_token

In your User model add:

  /**
   * Overrides the method to ignore the remember token.
   */
  public function setAttribute($key, $value)
  {
    $isRememberTokenAttribute = $key == $this->getRememberTokenName();
    if (!$isRememberTokenAttribute)
    {
      parent::setAttribute($key, $value);
    }
  }

Credits: https://laravel.io/forum/05-21-2014-how-to-disable-remember-token


Since Laravel v5.3.27 you can also disable the remember me functionality by setting the $rememberTokenName to false in your User model.

class User extends Authenticatable
{
    use Notifiable;


    protected $rememberTokenName = false;

    // ...
}

source: this commit