Cursor based pagination for Laravel
bitsnbolts/laravel-cursor-paginate is a Laravel package for cursor based pagination for laravel.
It currently has 0 GitHub stars and 6.678 downloads on Packagist (latest version 6.0.0).
Install it with composer require bitsnbolts/laravel-cursor-paginate.
Discover more Laravel packages by bitsnbolts
or browse all Laravel packages to compare alternatives.
Last updated

This package adds Cursor Based Pagination to Laravel.
You can install the package via composer:
composer require bitsnbolts/laravel-cursor-paginate
You can publish the config file with:
php artisan vendor:publish --provider="Bitsnbolts\CursorPaginate\CursorPaginateServiceProvider" --tag="laravel-cursor-paginate-config"
This is the contents of the published config file:
return [
];
$paginator = App\Models\ExampleModel::cursorPaginateWithTotal(10, ['created_at' => 'desc', 'id' => 'desc']);
$items = $paginator->items();
$nextUrl = $paginator->nextCursorUrl();
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.