Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

muwi's avatar
Level 1

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!

0 likes
2 replies
bobbybouwmann's avatar
Level 88

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

1 like
muwi's avatar
Level 1

This seems to be a bug in Laravel then I guess? Anyway thanks for helping me out. This works for me now.

Please or to participate in this conversation.