Skip to content

Commit

Permalink
Update volt-component.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin authored Oct 27, 2023
1 parent cd03c0f commit 765eb82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/views/volt-component.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
public function clear()
{
$this->clearRateLimiter('limit', class: 'VoltComponent');
$this->clearRateLimiter('limit', component: 'VoltComponent');
}
public function hit()
{
$this->hitRateLimiter('limit', 1, class: 'VoltComponent');
$this->hitRateLimiter('limit', 1, component: 'VoltComponent');
}
public function limit()
{
try {
$this->rateLimit(3, 1, class: 'VoltComponent');
$this->rateLimit(3, 1, component: 'VoltComponent');
} catch (TooManyRequestsException $exception) {
return $this->secondsUntilAvailable = $exception->secondsUntilAvailable;
}
Expand Down

0 comments on commit 765eb82

Please sign in to comment.