Laravel resource nested pagination #46794
Unanswered
mohammadhsn
asked this question in
General
Replies: 2 comments 1 reply
-
Why you're not doing this instead?
then get an ID from category and go to:
Q: You need to response exactly all in once? |
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
-
I have two eloquent models called
Product
andCategory.
They also have their own related HTTP resource classes.In
CategoryController@show,
I have something like the below:My category resource shows the products as well:
I expect something like the below in the JSON response, but the pagination info doesn't exist inside products:
What I expected from the JSON response:
Beta Was this translation helpful? Give feedback.
All reactions