Render relation manager under condition
Is in filament possible to show relations only under some condition ? I need to show ProductsRelationManager only, if the edited Category isnt parent.
Image is just example, what I would like to create.

2 Replies
Yes, use the canViewForRecord() method in the relationshipmanager.
Thast pretty cool ! I finally found it in the documentation https://filamentphp.com/docs/3.x/panels/resources/relation-managers#conditionally-showing-relation-managers
Thank you for your advice !