Skip to content
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

Eager loading when each child has different relationships defined? #138

Open
mattpannella opened this issue Jan 29, 2025 · 0 comments
Open

Comments

@mattpannella
Copy link

I have a parent class and 2 children define, but my issue is the children have their own relationships. So i currently can't eager load them, since they're defined on the child classes and not the parent.

Parent::with('Stuff')->with('Things')->get()

parent doesn't have either relation defined, stuff is only on child 1, things are only on child 2. i'm thinking this would be really complex to implement, but wondering if it's been thought about

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant