Skip to content

Commit

Permalink
Fix error when using orderByRaw() in query before using `cursorPagi…
Browse files Browse the repository at this point in the history
…nate()` (#51023)
  • Loading branch information
axlon authored Apr 11, 2024
1 parent 1ee54e9 commit 2c4746a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Pagination/AbstractCursorPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ public function getCursorForItem($item, $isNext = true)
public function getParametersForItem($item)
{
return collect($this->parameters)
->filter()
->flip()
->map(function ($_, $parameterName) use ($item) {
if ($item instanceof JsonResource) {
Expand Down

0 comments on commit 2c4746a

Please sign in to comment.