New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paginate on hasManyThrough returns first level relation #4171
Comments
You mean you "only" get paginated data from the users table, or the paginated data includes both users and posts? |
Yeap, paginate returns Only users data, no posts data included. |
This has been fixed. |
no not fixed, connection is lost when adding pagination |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example:
And in Country model we have:
If we search for all post in country like this
$country->posts
- we get the correct data, also using$country->posts()->take(10)->get()
- we also get right data fromposts
table.But if we call for
$country->posts()->paginate()
- we get paginated data fromusers
table.The text was updated successfully, but these errors were encountered: