Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[8.x] Clarify that nullable columns aren't supported for cursor pagin…
…ation (#7232)

* Update pagination.md

* Update pagination.md

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
driesvints and taylorotwell committed Aug 13, 2021
1 parent a458cbf commit 131144d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pagination.md
Expand Up @@ -124,7 +124,7 @@ The cursor pagination query offers the following advantages over offset paginati
However, cursor pagination has the following limitations:

- Like `simplePaginate`, cursor pagination can only be used to display "Next" and "Previous" links and does not support generating links with page numbers.
- It requires that the ordering is based on at least one unique column or a combination of columns that are unique.
- It requires that the ordering is based on at least one unique column or a combination of columns that are unique. Columns with `null` values are not supported.
- Query expressions in "order by" clauses are supported only if they are aliased and added to the "select" clause as well.

<a name="manually-creating-a-paginator"></a>
Expand Down

0 comments on commit 131144d

Please sign in to comment.