Laravel Nested Eager Loading on Polymorphic Relationships

Generally you should keen load totally different relationships relying on the kind of mannequin on a polymorphic relationship. For instance: you have got two kind of customers vendor and purchaser, the keen load relationship for vendor is the product and the keen load relationship for purchaser is the order. class Vendor extends Mannequin { public […]