RateLimiter::__construct()

void __construct(Repository $cache) Create a new rate limiter instance. Parameters Repository $cache Return Value void

RateLimiter::tooManyAttempts()

bool tooManyAttempts(string $key, int $maxAttempts, float|int $decayMinutes = 1) Determine if the given key has been "accessed" too many times. Parameters string $key int $maxAttempts float|int $decayMinutes Return Value bool

RateLimiter::retriesLeft()

int retriesLeft(string $key, int $maxAttempts) Get the number of retries left for the given key. Parameters string $key int $maxAttempts Return Value int

RateLimiter::resetAttempts()

mixed resetAttempts(string $key) Reset the number of attempts for the given key. Parameters string $key Return Value mixed

RateLimiter::hit()

int hit(string $key, float|int $decayMinutes = 1) Increment the counter for a given key for a given decay time. Parameters string $key float|int $decayMinutes Return Value int

RateLimiter::clear()

void clear(string $key) Clear the hits and lockout for the given key. Parameters string $key Return Value void

RateLimiter::availableIn()

int availableIn(string $key) Get the number of seconds until the "key" is accessible again. Parameters string $key Return Value int

RateLimiter::attempts()

mixed attempts(string $key) Get the number of attempts for the given key. Parameters string $key Return Value mixed

RateLimiter

RateLimiter class RateLimiter (View source) Methods void __construct(Repository $cache) Create a new rate limiter instance. bool tooManyAttempts(string $key, int $maxAttempts, float|int $decayMinutes = 1) Determine if the given key has been "accessed" too many times. int hit(string $key, float|int $decayMinutes = 1) Increment the counter for a given key for a given decay time. mixed attempts(string $key) Get the number of attempts for the given key. mixed resetAttempts

Queue\Jobs

Illuminate\Queue\Jobs Classes BeanstalkdJob IronJob Job RedisJob SqsJob SyncJob