3 years ago

Eloquent Relationship chaining problem

Posted 3 years ago by dericcain

I have something called a FreeLook that can have a SignVendor and a PaintVendor. The SignVendor or PaintVendor can have a VendorJob using polymorphic relations. The vendors can have many jobs. I want to get the job for the FreeLook for a specific type of vendor. But.. when I do this..


I get an array because the vendor can have many jobs … and it’s not the job that is associated with the he `Free, it’s all of the jobs for that vendor.

So, I do I make this relationship so that I can get the particular job for a specific vendor type for a freelook?

Please sign in or create an account to participate in this conversation.