F
Filamentβ€’3mo ago
Niels

Tenant menu and registration not working in v4

I am not sure if this is an unfinished feature or a bug in v4 beta? This is added to my code:
->tenant(Organization::class, slugAttribute: 'code')
->tenantRegistration(RegisterOrganization::class)
->tenantProfile(EditOrganizationProfile::class)
->tenant(Organization::class, slugAttribute: 'code')
->tenantRegistration(RegisterOrganization::class)
->tenantProfile(EditOrganizationProfile::class)
But clicking the tenant in the sidebar doesn't open the menu and the "/new" page returns 404.
Solution:
Oh, I just realized I forgot to configure the policy for the tenant model. My bad 😝
Jump to solution
2 Replies
Dennis Koch
Dennis Kochβ€’3mo ago
I don't think the beta contains "unfinished features" so in doubt it's a bug that needs to be reported in GitHub.
Solution
Niels
Nielsβ€’3mo ago
Oh, I just realized I forgot to configure the policy for the tenant model. My bad 😝

Did you find this page helpful?