© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•17mo ago•
14 replies
Matheeus

"The model [App\Models\Team] does not have a relationship named [leads]." (Multi-tenant + Modules)

I'm writing a Multi-tentant app with Filament V3, but this app uses the Modules structure (using nWidart/laravel-modules and savannabits/filament-modules libraries)

The problem is that Multi tenancy requires that the "Team" (so the tenant model) contains a relationship function to each of my Models, but in my case I can have "dynamic" models that can change by the Modules i'm using, so it's impossible to know and implement all the relationship methods in Teams (also this model potentially can get too long and a mess if the app gets more complex).

Is there anyway to workaround this or disable this requirement?
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

The model does not have a relationship named [team]
FilamentFFilament / ❓┊help
16mo ago
Define multi-tenant relationship indirectly through another model
FilamentFFilament / ❓┊help
9mo ago
Multi-Tenancy HasManyThrough Tenant Relationship
FilamentFFilament / ❓┊help
3y ago
Child Relationship of Tenant Model
FilamentFFilament / ❓┊help
3y ago