Example #1
1
 /**
  * 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();
 }
Example #2
0
 /**
  * Logout the user.
  *
  * @param bool $forceForever
  *
  * @return bool
  */
 public function logout($forceForever = true)
 {
     $this->invalidate($forceForever);
     $this->user = null;
     $this->jwt->unsetToken();
 }