Nested relationship managers
I have this relationship
Products has many ProductVariants
ProductVariants belongsToMany Merchants, where there will be a pivot column stock_count as each merchants maintains a different stock count for each product variants.
I have created a VariantRelationshipManager for ProductResource however im not sure how i can add a nested relationship manager(merchants relationship) into VariantRelationshipManager.
is there a way for nested relationship manager inside a relationship manager?
or i'm looking at it wrongly.
Solution:Jump to solution
I have this relationship
Products has many ProductVariants
ProductVariants belongsToMany Merchants, where there will be a pivot column stock_count as each merchants maintains a different stock count for each product variants.
...
4 Replies
There isn’t. You can build it manually though by redirecting to the „next“ relation manager.
@Dennis Koch i see, thanks for the answer but how do i do the redirect? using Action::make() ?
->url()
It’s just a link.
i see, so go the manual way, thanks for the input!