Skip to content

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

@mattpannella

Description

@mattpannella

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions