roquie/laravel-perpage-resolver
A lightweight Laravel package that resolves per-page values for pagination from incoming requests. It centralizes defaults, allowed limits, and validation so every endpoint returns consistent page sizes without hardcoding request checks or scattering pagination logic.
roquie/laravel-perpage-resolver is a lightweight Laravel package that centralizes how the "per page" value is resolved for paginated queries. Instead of scattering hardcoded limits or ad-hoc request('per_page') calls across controllers, it provides a single, configurable resolver that turns a request parameter into a safe, validated integer—honoring sensible defaults, allowed bounds, and optional user overrides.
per_page query parameter from the current requestHow can I help you explore Laravel packages today?