$perPageViaRelationship with array of pagination options #6389
Unanswered
goellner
asked this question in
Ideas & Feature Requests
Replies: 1 comment
-
Would find this very useful. Sometimes you just need to get an overview of a relationship, that you can't get with 5. And you also don't want 25 or more to be loaded all the time. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be awesome if we could change
perPageViaRelationship
to support adding an array.Example why this could be very useful:
I have Spaties Sortable Eloquent package and need to set to sort on a relationship and need to see all the models to sort all of them at once. But we don't need to sort every time we open the resource and by default it could show only 50 models.
If we could set
$perPageViaRelationship = [50, 500, 10000]
and could change this via the pagination options when needed, we could solve this without querying 10000 models everytime.Beta Was this translation helpful? Give feedback.
All reactions