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
-
Yes, I do |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
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