© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
alexanderkroneis

HasManyThrough not allowed in Repeater->relationship

Hi,

I am building an admin panel for a contract administration. They need to add various of relational data, one of them is
seasons
seasons
which are hold by it's parent called
seasonGroups
seasonGroups
. A contract references n
seasonGroups
seasonGroups
so I thought: I could access the
seasons
seasons
by a
HasManyThrough
HasManyThrough
relation.

Forms\Components\Repeater::make('seasons')
    ->label(__('Saisonen'))
    ->relationship('seasons')
Forms\Components\Repeater::make('seasons')
    ->label(__('Saisonen'))
    ->relationship('seasons')


This snippet results in following error message.

Filament\Forms\Components\Repeater::getRelationship(): Return value must be of type Illuminate\Database\Eloquent\Relations\HasOneOrMany|Illuminate\Database\Eloquent\Relations\BelongsToMany|null, Illuminate\Database\Eloquent\Relations\HasManyThrough returned
Filament\Forms\Components\Repeater::getRelationship(): Return value must be of type Illuminate\Database\Eloquent\Relations\HasOneOrMany|Illuminate\Database\Eloquent\Relations\BelongsToMany|null, Illuminate\Database\Eloquent\Relations\HasManyThrough returned


Are there any specific reasons why
HasManyThrough
HasManyThrough
is not supported by
relationship
relationship
?
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

HasManyThrough repeater relation
FilamentFFilament / ❓┊help
2y ago
RelationManager for hasManyThrough relationship
FilamentFFilament / ❓┊help
2y ago
Multi-Tenancy HasManyThrough Tenant Relationship
FilamentFFilament / ❓┊help
3y ago
Relationship repeater not working
FilamentFFilament / ❓┊help
2y ago