clearRateLimiter('limit', component: 'VoltComponent'); } public function hit() { $this->hitRateLimiter('limit', 1, component: 'VoltComponent'); } public function limit() { try { $this->rateLimit(3, 1, component: 'VoltComponent'); } catch (TooManyRequestsException $exception) { return $this->secondsUntilAvailable = $exception->secondsUntilAvailable; } $this->secondsUntilAvailable = 0; } }; ?>