20220717
This commit is contained in:
30
vendor/illuminate/support/Facades/RateLimiter.php
vendored
Normal file
30
vendor/illuminate/support/Facades/RateLimiter.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Support\Facades;
|
||||
|
||||
/**
|
||||
* @method static \Illuminate\Cache\RateLimiter for(string $name, \Closure $callback)
|
||||
* @method static \Closure limiter(string $name)
|
||||
* @method static bool tooManyAttempts($key, $maxAttempts)
|
||||
* @method static int hit($key, $decaySeconds = 60)
|
||||
* @method static mixed attempts($key)
|
||||
* @method static mixed resetAttempts($key)
|
||||
* @method static int retriesLeft($key, $maxAttempts)
|
||||
* @method static void clear($key)
|
||||
* @method static int availableIn($key)
|
||||
* @method static bool attempt($key, $maxAttempts, \Closure $callback, $decaySeconds = 60)
|
||||
*
|
||||
* @see \Illuminate\Cache\RateLimiter
|
||||
*/
|
||||
class RateLimiter extends Facade
|
||||
{
|
||||
/**
|
||||
* Get the registered name of the component.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function getFacadeAccessor()
|
||||
{
|
||||
return \Illuminate\Cache\RateLimiter::class;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user