Restricts the number of requests made by a single key within a set number of seconds. Example: if (! $throttler->checkIPAddress($request->ipAddress(), 60, MINUTE)) { die('You submitted over 60 requests within a minute.'); }
Parameters
string $key — The name to use as the "bucket" name.
int $capacity — The number of requests the "bucket" can hold
int $seconds — The time it takes the "bucket" to completely refill
int $cost — The number of tokens this action uses.
return bool