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:
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. ...
Jump to solution
4 Replies
Dennis Koch
Dennis Koch17mo ago
There isn’t. You can build it manually though by redirecting to the „next“ relation manager.
elsonium
elsoniumOP17mo ago
@Dennis Koch i see, thanks for the answer but how do i do the redirect? using Action::make() ?
Dennis Koch
Dennis Koch17mo ago
->url() It’s just a link.
elsonium
elsoniumOP17mo ago
i see, so go the manual way, thanks for the input!
Want results from more Discord servers?
Add your server