Registry / web-framework / spatie-laravel-json-api-paginate

spatie-laravel-json-api-paginate

JSON →
library2.0.1phppackagistunverified

A paginator that plays nice with the JSON API spec

composer require spatie/laravel-json-api-paginate
INSTALL
IMPORT
SIG · SPATIE-LARAVEL-JSO
S
spatie-laravel-json-api-paginate
web-frameworkphpv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JsonApiPaginateServiceProvider
use Spatie\JsonApiPaginate\JsonApiPaginateServiceProvider;

Register the service provider and use jsonPaginate on Eloquent queries

// In config/app.php providers array: Spatie\JsonApiPaginate\JsonApiPaginateServiceProvider::class, // In controller: $users = User::jsonPaginate();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
spatie-laravel-json-api-paginate — pip install spatie-laravel-json-api-paginate · libregistry