relationManger nested
I'm building admin and user panel with filament.
in admin panel i have a usersResource and relationManger that is name is "CampaignsRelationManager".
in user panel i have a campaigns resource and relationManger that is name is "CampCouponRelationManager".
i want to add CampCouponRelationManager to CampaignsRelationManager under the admin panel.
Basically, it means to create a relationManger inside a relationManger
in admin panel i have a usersResource and relationManger that is name is "CampaignsRelationManager".
in user panel i have a campaigns resource and relationManger that is name is "CampCouponRelationManager".
i want to add CampCouponRelationManager to CampaignsRelationManager under the admin panel.
Basically, it means to create a relationManger inside a relationManger
Solution
Yeah sure, it is just a custom action on the table:
Inside your relationmanager in the actions array you can do something like this:
Inside your relationmanager in the actions array you can do something like this: