diff --git a/src/Illuminate/Cache/RateLimiting/Limit.php b/src/Illuminate/Cache/RateLimiting/Limit.php index ab3463f51830..3e8956cad2ad 100644 --- a/src/Illuminate/Cache/RateLimiting/Limit.php +++ b/src/Illuminate/Cache/RateLimiting/Limit.php @@ -58,6 +58,18 @@ public static function perMinute($maxAttempts) return new static('', $maxAttempts); } + /** + * Create a new rate limit using minutes as decay time. + * + * @param int $maxAttempts + * @param int $decayMinutes + * @return static + */ + public static function perMinutes($maxAttempts, $decayMinutes = 1) + { + return new static('', $maxAttempts, $decayMinutes); + } + /** * Create a new rate limit using hours as decay time. *