Skip to content

Commit 0763663

Browse files
committed
Update:update code
1 parent aae77a6 commit 0763663

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/QueryFilter/Core/RateLimiting.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function checkRateLimit(): void
2626

2727
$key = $this->resolveRateLimitKey();
2828
$maxAttempts = config('eloquentFilter.rate_limit.max_attempts', 60);
29-
$decayMinutes = config('eloquent-filter.rate_limit.decay_minutes', 1);
29+
$decayMinutes = config('eloquentFilter.rate_limit.decay_minutes', 1);
3030

3131
if ($limiter->tooManyAttempts($key, $maxAttempts)) {
3232
$seconds = $limiter->availableIn($key);
@@ -39,7 +39,7 @@ protected function checkRateLimit(): void
3939
];
4040

4141
throw new ThrottleRequestsException(
42-
config('eloquent-filter.rate_limit.error_message', 'Too many filter requests. Please try again later.'),
42+
config('eloquentFilter.rate_limit.error_message', 'Too many filter requests. Please try again later.'),
4343
null,
4444
$headers
4545
);
@@ -48,7 +48,7 @@ protected function checkRateLimit(): void
4848
$limiter->hit($key, $decayMinutes * 60);
4949

5050
// Store rate limit info in request for later use
51-
if (config('eloquent-filter.rate_limit.include_headers', true)) {
51+
if (config('eloquentFilter.rate_limit.include_headers', true)) {
5252
$remaining = $limiter->remaining($key, $maxAttempts);
5353
$request = request();
5454

0 commit comments

Comments
 (0)