© 2026 Hedgehog Software, LLC

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

Set filter form column in relation manager

Can anyone tell me what should i do to set filter form column in relation manager?

I want to have 3 grid of columns at filter forms, using filament v2..
Solution
Ok, then do like this
return $table
    ...
    ->filters([
        Filter::make('created_at')
            ->form([
                Grid::make(3)
                    ->schema([
                        Forms\Components\DatePicker::make('created_from'),
                        Forms\Components\DatePicker::make('created_until'),
                        Forms\Components\DatePicker::make('updated_at'),
                    ]),
            ])
            ->columnSpan('full'),
    ])
    ...

// use filter layout like below
protected function getTableFiltersLayout(): ?string
{
    return Layout::AboveContent;
}
return $table
    ...
    ->filters([
        Filter::make('created_at')
            ->form([
                Grid::make(3)
                    ->schema([
                        Forms\Components\DatePicker::make('created_from'),
                        Forms\Components\DatePicker::make('created_until'),
                        Forms\Components\DatePicker::make('updated_at'),
                    ]),
            ])
            ->columnSpan('full'),
    ])
    ...

// use filter layout like below
protected function getTableFiltersLayout(): ?string
{
    return Layout::AboveContent;
}

Ref: https://filamentphp.com/docs/2.x/tables/filters#displaying-filters-above-or-below-the-table-content
Filters - Table Builder - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Relation manager form
FilamentFFilament / ❓┊help
2y ago
Relation manager - embed in form?
FilamentFFilament / ❓┊help
3y ago
Relation manager filter data
FilamentFFilament / ❓┊help
3y ago
Relation Manager and filter
FilamentFFilament / ❓┊help
3y ago