We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To avoid some DoS attacks, please add a rate limit to all endpoints.
The text was updated successfully, but these errors were encountered:
Laravel 9 already brings it by default, you can find it out on the RouteServiceProvider.php file
RouteServiceProvider.php
/** * Configure the rate limiters for the application. * * @return void */ protected function configureRateLimiting() { RateLimiter::for('api', function (Request $request) { return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); }); }
Sorry, something went wrong.
No branches or pull requests
To avoid some DoS attacks, please add a rate limit to all endpoints.
The text was updated successfully, but these errors were encountered: