RateLimiter.php 884 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static \Illuminate\Cache\RateLimiter for(string $name, \Closure $callback)
  5. * @method static \Closure limiter(string $name)
  6. * @method static bool tooManyAttempts($key, $maxAttempts)
  7. * @method static int hit($key, $decaySeconds = 60)
  8. * @method static mixed attempts($key)
  9. * @method static mixed resetAttempts($key)
  10. * @method static int retriesLeft($key, $maxAttempts)
  11. * @method static void clear($key)
  12. * @method static int availableIn($key)
  13. * @method static bool attempt($key, $maxAttempts, \Closure $callback, $decaySeconds = 60)
  14. *
  15. * @see \Illuminate\Cache\RateLimiter
  16. */
  17. class RateLimiter extends Facade
  18. {
  19. /**
  20. * Get the registered name of the component.
  21. *
  22. * @return string
  23. */
  24. protected static function getFacadeAccessor()
  25. {
  26. return 'Illuminate\Cache\RateLimiter';
  27. }
  28. }