Closed
Description
Is your feature request related to a problem?
This feature was added to Laravel 8. Please see the docs: https://laravel.com/docs/8.x/pagination#cursor-pagination.
Describe the solution you'd like
Currently it doesn't work on this package. The first reason is that in this package orders are stored differently in builder objects and therefore Query|Eloquent\Builder::ensureOrderForCursorPagination()
methods doesn't return the expected results. So the fix can be to override ensureOrderForCursorPagination()
in this package or make sure orders arrays in mongodb builder objects are the same format as those in the original Laravel ones.
Metadata
Metadata
Assignees
Labels
No labels