/** * Update the "remember me" token for the given user in storage. * * @param \Illuminate\Contracts\Auth\Authenticatable $user * @param string $token * @return void */ public function updateRememberToken(Authenticatable $user, $token) { $user->setToken($token); app('\\Doctrine\\ORM\\EntityManager')->flush($user); }