class RateLimited (View source)
| protected RateLimiter | $limiter | The rate limiter instance. | |
| protected string | $limiterName | The name of the rate limiter. | |
| bool | $shouldRelease | Indicates if the job should be released if the limit is exceeded. |
| void | __construct(string $limiterName)
Create a new middleware instance. | |
| mixed | handle(mixed $job, callable $next)
Process the job. | |
| mixed | handleJob(mixed $job, callable $next, array $limits)
Handle a rate limited job. | |
| $this | dontRelease()
Do not release the job back to the queue if the limit is exceeded. | |
| int | getTimeUntilNextRetry(string $key)
Get the number of seconds that should elapse before the job is retried. | |
| array | __sleep()
Prepare the object for serialization. | |
| void | __wakeup()
Prepare the object after unserialization. |
Create a new middleware instance.
Process the job.
Handle a rate limited job.
Do not release the job back to the queue if the limit is exceeded.
Get the number of seconds that should elapse before the job is retried.
Prepare the object for serialization.
Prepare the object after unserialization.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Queue/Middleware/RateLimited.html