This commit is contained in:
2022-07-18 08:00:16 +03:00
parent 42dd4c60f2
commit 42a8133706
2387 changed files with 210708 additions and 29 deletions

View 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;
}
}