Multi Tenancy with one to many polymorphic relationship.

I got the error. I can't create the category at the filament panel
The model [App\Models\Tenant] does not have a relationship named [categories]. You can change the relationship being used by setting it as the [$tenantRelationshipName] static property on the [App\Filament\Resources\CategoryResource] resource class.

$panel->tenant(Tenant::class, ownershipRelationship: 'tenants')
Was this page helpful?