codificio/laravel-batched-request

Service provider for batched requests in Laravel framework (Laravel PHP).

0.3.2 2020-03-19 10:04 UTC

This package is auto-updated.

Last update: 2024-03-19 18:54:04 UTC


README

This package is based on https://github.com/dvanderburg/lumen-batched-request.

Middleware

In addition to that package, there is also a middleware which override the base ThrottleRequests middleware. It is used to avoid API rate limit for the requests inside the batch.

Replace the default middleware:

Illuminate\Routing\Middleware\ThrottleRequests

with:

Codificio\BatchedRequest\ThrottleRequests

in the app\Http\Kernel.php file.