Skip to content

feat: add cursor pagination with direction support#224

Merged
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x
Mar 11, 2026
Merged

feat: add cursor pagination with direction support#224
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x

Conversation

@techmahedy
Copy link
Copy Markdown
Member

@techmahedy techmahedy commented Mar 11, 2026

// Model
User::cursorPaginate(15, 'id', 'asc', $request->cursor);

// With conditions
User::where('active', 1)->cursorPaginate(20, 'created_at', 'desc', $request->cursor);

// Query\Builder
db()->bucket('users')->cursorPaginate(15, 'id', 'asc', $request->cursor);

@techmahedy techmahedy added the feat new feature label Mar 11, 2026
@techmahedy techmahedy merged commit 972c53a into doppar:3.x Mar 11, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant