Laravel API rate limiting 100 requests per minute Hi,
I'm working on an API where people can do 100 requests per minute. Laravel keeps saying that I can only do 60 requests per minutes. What am I doing wrong?
Route::get('api/comments/{skill}', 'CommentSkillController@index')->middleware('throttle:100,1');
The setting greater than 60 is ignored!
Check your app/Http/Kernel.php file. This is probably overriding the setting. So you can remove it there and put it in a route group as an example.
'api' => [
'throttle:60,1',
'bindings',
],
Let me know if that works for you
This seems to be a bug in Laravel then I guess? Anyway thanks for helping me out. This works for me now.
Please sign in or create an account to participate in this conversation.