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

amitsolanki24_'s avatar

Throttle rate limiting not working for my api

For example, I have added throttle 1 for 60 mint. When I call on api/posts/23 then throttle is set to 1. Then I call api/posts/25, its showing too many attempts.

My question is that when I pass different post id , throttle should be treated as different, that's not happening

Route::get('posts/{id}', [PostController::class, 'show'])->middleware('throttle:1:60);

How can i add throttle for posts/{id} api

0 likes
1 reply

Please or to participate in this conversation.