Downloads
Stars
Version
This Laravel package brings cursor based pagination support to Laravel and Lighthouse in particular.
You can install the package via composer:
composer require dutchcodingcompany/cursor-pagination
Add 'DutchCodingCompany\\CursorPagination\\Directives'
to config/lighthouse.php under
namespaces => [
'directives' => ['DutchCodingCompany\\CursorPagination\\Directives']
]
Call cursorPaginate()
on an Eloquent or Query Builder
User::orderBy('updated_at', 'asc')->cursorPaginate($limit);
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.