title: How to set the rate limiter for per second in Laravel version 8
body: <p>How to set the rate limiter per second in <strong>Laravel 8</strong>. I need to set the rate limiter per second instead of per minute.</p>
  <p>Rate Limiter (Laravel 8) - <a href="https://laravel.com/docs/8.x/routing#rate-limiting" rel="noreferrer">https://laravel.com/docs/8.x/routing#rate-limiting</a></p>
  <p>Right now I'm able to use Laravel's rate limiter for minutes, hours, etc. But I'm trying to achieve a rate limiter for a second. I want to limit 25 requests per sec.
  (Exported Limit class from &quot;Illuminate\Cache\RateLimiting\Limit&quot;)</p>
  <p>Please check the following code which I have used</p>
  <pre><code>RateLimiter::for('api', function (Request $request) {
          return [
              // Rate limiter based on Client IP Address
              Limit::perMinute(env('IP_ADDR_RATE_LIMITER_PER_MINUTE', 60))-&gt;by($request-&gt;ip())-&gt;response(function () {
                  ....
              }),
              // Rate limiter based on API key/User
              Limit::perMinute(env('API_KEY_RATE_LIMITER_PER_MINUTE', 60))-&gt;by($request-&gt;input('key'))-&gt;response(function () {
                  ...
              })
          ];
      });
  </code></pre>
  <p>Is there any way to rate-limit 25 requests per second?</p>
  <p>Note: also tried adding/changing functions in Illuminate\Cache\RateLimiting\Limit, where I tried altering the per minute function.
  Thanks in Advance.</p>