diff --git a/content/collections/docs/rest-api.md b/content/collections/docs/rest-api.md index d5962bf63..f2652ac9b 100644 --- a/content/collections/docs/rest-api.md +++ b/content/collections/docs/rest-api.md @@ -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 @@ -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, - ], -]; -``` +``