Allow Collections in AbstractPaginator::appends #57004
Unanswered
hctorres02
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current behavior
In
Illuminate\Pagination\AbstractPaginator
, the appends method only accepts arrays or key/value pairs when adding query string values. Passing anIlluminate\Support\Collection
is not supported unless it is explicitly converted to an array.Why this matters
->toArray()
every time.Proposed solution
Update the conditional check in
AbstractPaginator::appends
to allow collections:Beta Was this translation helpful? Give feedback.
All reactions