© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
Shaung Bhone

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.
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')
$panel->tenant(Tenant::class, ownershipRelationship: 'tenants')
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

One to many polymorphic relationship
FilamentFFilament / ❓┊help
2y ago
multi tenancy as polymorphic table
FilamentFFilament / ❓┊help
3y ago
Best Approach for Filament Multi-Tenancy with One-to-Many User-tenant Relationship
FilamentFFilament / ❓┊help
10mo ago
Multi-Tenancy HasManyThrough Tenant Relationship
FilamentFFilament / ❓┊help
3y ago