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

Project Samples

Project Activity

See All Activity >

Categories

JSON

License

MIT License

Follow Laravel JSON API Paginate

Laravel JSON API Paginate Web Site

Other Useful Business Software
Vibes don’t ship, Retool does Icon
Vibes don’t ship, Retool does

Start from a prompt and build production-ready apps on your data—with security, permissions, and compliance built in.

Vibe coding tools create cool demos, but Retool helps you build software your company can actually use. Generate internal apps that connect directly to your data—deployed in your cloud with enterprise security from day one. Build dashboards, admin panels, and workflows with granular permissions already in place. Stop prototyping and ship on a platform that actually passes security review.
Build apps that ship
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Laravel JSON API Paginate!

Additional Project Details

Programming Language

PHP

Related Categories

PHP JSON Software

Registered

2023-10-26