429: Too Many Attempts
X-RateLimit-Limit X-RateLimit-Remaining Retry-After
Amb Laravel:
Route::group(['prefix' => 'api', 'middleware' => 'throttle'], function () { Route::get('people', function () { return Person::all(); }); });
Per indicar valors límits:
Route::group(['prefix' => 'api', 'middleware' => 'throttle:5'], function () { Route::get('people', function () { return Person::all(); }); });
And if we want to change it so that, if someone hits the limit, they can't try again for another 10 minutes?
Route::group(['prefix' => 'api', 'middleware' => 'throttle:5,10'], function () { Route::get('people', function () { return Person::all(); }); });