Rate Limiting: Dynamic Rate Limiting

Route::middleware('auth:api', 'throttle:rate_limit,1')->group(function () {
    Route::get('/user', function () {
        //
    });
});

You may specify a dynamic request maximum based on an attribute of the authenticated User model.

Related concepts

Rate Limiting: Dynamic Rate Limiting — Structure map

Clickable & Draggable!

Rate Limiting: Dynamic Rate Limiting — Related pages: