How to Enable child resource to tenant based on the parent model belong to the tenant

Suppose I have Post Model that has tenant_id as a forign to a Tenant. I then have Comment model that belong to Post with post_id, but Comment does not have tenant_id. Now If I would like to have Resource of Comment to listed in Navigation menu and under the Tenant user only. How I would do that.
No description
Solution:
I got it now by setting this: protected static ?string $tenantOwnershipRelationshipName = 'post;
Jump to solution
1 Reply
Solution
Zen Nitiruj
Zen Nitiruj2mo ago
I got it now by setting this: protected static ?string $tenantOwnershipRelationshipName = 'post;

Did you find this page helpful?