Skip to content

Commit ca7e5d8

Browse files
authored
fix(RateLimiter): add method tags for RateLimiter facade (#34230)
1 parent 0cdd365 commit ca7e5d8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Illuminate/Support/Facades/RateLimiter.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
namespace Illuminate\Support\Facades;
44

55
/**
6+
* @method static \Illuminate\Cache\RateLimiter for(string $name, \Closure $callback)
7+
* @method static \Closure limiter(string $name)
8+
* @method static bool tooManyAttempts($key, $maxAttempts)
9+
* @method static int hit($key, $decaySeconds = 60)
10+
* @method static mixed attempts($key)
11+
* @method static mixed resetAttempts($key)
12+
* @method static int retriesLeft($key, $maxAttempts)
13+
* @method static void clear($key)
14+
* @method static int availableIn($key)
15+
*
616
* @see \Illuminate\Cache\RateLimiter
717
*/
818
class RateLimiter extends Facade

0 commit comments

Comments
 (0)