Skip to content

Commit

Permalink
Everyone's running > Laravel 9, no need for L7 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored May 7, 2024
1 parent 5574159 commit 17a5554
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions content/collections/docs/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ class CustomCacher extends AbstractCacher

The REST API is Rate Limited to **60 requests per minute** by default.

**If you're running on Laravel 8+** you can change this configuration in your `RouteServiceProvider`. Learn more about [Laravel 8+ Rate Limiting](https://laravel.com/docs/8.x/rate-limiting).
You can change this configuration in your `RouteServiceProvider`. Learn more about [Laravel 8+ Rate Limiting](https://laravel.com/docs/master/rate-limiting).

```php
// app/Providers/RouteServiceProvider.php
Expand All @@ -699,20 +699,7 @@ protected function configureRateLimiting()
return Limit::perMinute(60);
});
}
```

**If you're running on Laravel 7** you can change this configuration in your `HTTP/Kernel` middlweare config. Learn more about [Laravel 7 Rate Limiting](https://laravel.com/docs/7.x/routing#rate-limiting).

```php
//app/Http/Kernel.php
protected $middlewareGroups = [
...
'api' => [
'throttle:60,1',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
];
```
``



Expand Down

0 comments on commit 17a5554

Please sign in to comment.