Skip to content

[13.x] Fix pagination edge cases - #60968

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
lucasmichot:fix/pagination-edge-cases
Aug 2, 2026
Merged

[13.x] Fix pagination edge cases#60968
taylorotwell merged 1 commit into
laravel:13.xfrom
lucasmichot:fix/pagination-edge-cases

Conversation

@lucasmichot

@lucasmichot lucasmichot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor
  • Guard against division by zero in LengthAwarePaginator when perPage is 0
  • Make CursorPaginator reindex items consistently on both next and previous pages

Guard LengthAwarePaginator against division by zero when perPage is 0,
and make CursorPaginator reindex items consistently for next/previous pages.
@lucasmichot
lucasmichot force-pushed the fix/pagination-edge-cases branch from 26a6e56 to dd92f4a Compare August 1, 2026 14:25
@lucasmichot
lucasmichot changed the base branch from 12.x to 13.x August 1, 2026 14:25
@lucasmichot lucasmichot changed the title Fix pagination edge cases [13.x] Fix pagination edge cases Aug 1, 2026
@taylorotwell
taylorotwell merged commit dc1b82b into laravel:13.x Aug 2, 2026
1 check passed
@lucasmichot
lucasmichot deleted the fix/pagination-edge-cases branch August 3, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants