Api throttle – API rate limiting in Laravel 5.2 — Study Place

So, on to the new feature in Laravel 5.2. There’s a new throttle middleware that you can use. Let’s take a look at our API group: Route::group([‘prefix’ => ‘api’], function () { Route::get(‘people’, function () { return Person::all(); }); }); Middleware code /** * The application’s route middleware groups. * * @var array */ protected […]

via Api throttle – API rate limiting in Laravel 5.2 — Study Place

Leave a Reply

Your email address will not be published. Required fields are marked *