© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Gustave

issue with hiddenOn on Table Filter

Hi all,
I have an issue with hiddenOn on Table Filter which seems to not working for me. On my resource table I have :
->filters([
                Tables\Filters\Filter::make('only_top_level_teams')
                    ->query(fn (Builder $query): Builder => $query->where('parent_team_id', null))
                    ->default()
                    ->hiddenOn(SubTeamsRelationManager::class)
            ])
->filters([
                Tables\Filters\Filter::make('only_top_level_teams')
                    ->query(fn (Builder $query): Builder => $query->where('parent_team_id', null))
                    ->default()
                    ->hiddenOn(SubTeamsRelationManager::class)
            ])


On the resource page :

public static function getRelations(): array
    {
        return [
            RelationGroup::make('Contacts', [
                RelationManagers\SubTeamsRelationManager::class,
                RelationManagers\TimeslotsRelationManager::class,
            ]),
        ];
    }
public static function getRelations(): array
    {
        return [
            RelationGroup::make('Contacts', [
                RelationManagers\SubTeamsRelationManager::class,
                RelationManagers\TimeslotsRelationManager::class,
            ]),
        ];
    }


On the relation page :

class SubTeamsRelationManager extends RelationManager
{

    protected static string $relationship = 'sub_teams';

    public function form(Form $form): Form
    {
        return TeamResource::form($form);
    }

    public function table(Table $table): Table
    {
        return TeamResource::table($table);
    }
}
class SubTeamsRelationManager extends RelationManager
{

    protected static string $relationship = 'sub_teams';

    public function form(Form $form): Form
    {
        return TeamResource::form($form);
    }

    public function table(Table $table): Table
    {
        return TeamResource::table($table);
    }
}


Anyone figured out why ? thx
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

Issue with QueryBuilder Table Filter
FilamentFFilament / ❓┊help
8mo ago
hidden and hiddenOn issue on TextColumn field.
FilamentFFilament / ❓┊help
3mo ago
hidden filter on table
FilamentFFilament / ❓┊help
3y ago
Modify the filter icon display on table filters?
FilamentFFilament / ❓┊help
16mo ago