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

sam0081's avatar

Route::group(['middleware' => ['auth','throttle:20,1']], function () {

what this throttle means... it check 20 request on that route group.. if it excced it block user for 1 minute.. is it check 20 request on every route or combine route.. if i have 2 route in that group how it works,..?

0 likes
1 reply
J5Dev's avatar

This appliers the defined middleware against each route within the group.

So, each route will only allow 20 requests per minute on that route, it isn't a collective across all routes.

1 like

Please or to participate in this conversation.