/** * Logout the user, thus invalidating the token. * * @param bool $forceForever * * @return void */ public function logout($forceForever = false) { $this->requireToken()->invalidate($forceForever); $this->user = null; $this->jwt->unsetToken(); }
/** * Logout the user. * * @param bool $forceForever * * @return bool */ public function logout($forceForever = true) { $this->invalidate($forceForever); $this->user = null; $this->jwt->unsetToken(); }