In a vanilla Laravel application, the query builder paginators will listen to the page request parameters. This works great, but it does not follow the example solution of the json: API spec. That example expects the query builder paginator to listen to the page[number] and page[size] request parameters. This package adds a jsonPaginate method to the Eloquent query builder that listens to those parameters and adds the pagination links the spec requires.
Features
- A paginator that plays nice with the JSON API spec Latest Version on Packagist GitHub Workflow Status
- You can install the package via composer
- Cursor pagination
- Modify the pagination parameter in the config file
- Licensed under the MIT License
Categories
JSONLicense
MIT LicenseFollow Laravel JSON API Paginate
Other Useful Business Software
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime
Live migration and automatic failover keep workloads online through maintenance. One free e2-micro VM every month.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Laravel JSON API Paginate!