public function validateOrFail($secret = null, $algo = null) { if (!$this->validate($secret, $algo)) { throw new InvalidTokenException('Token is not valid.'); } return true; }