© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•14mo ago•
3 replies
frame

Searchable by pivot name

In a relationmanager I have records with column
name
name
and a pivot column
name
name
. How do i make the table searchable by the pivot column? I already tried
Tables\Columns\TextColumn::make('name')->searchable()
Tables\Columns\TextColumn::make('name')->searchable()
(column works, search doesn't),
Tables\Columns\TextColumn::make('pivot.name')->searchable()
Tables\Columns\TextColumn::make('pivot.name')->searchable()
(column works, search doesn't) and
Tables\Columns\TextColumn::make('pivot_table_name.name')->searchable()
Tables\Columns\TextColumn::make('pivot_table_name.name')->searchable()
(neither works).
Solution
Had to define
searchable(['pivot_table_name.name'])
searchable(['pivot_table_name.name'])
instead
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filter by pivot
FilamentFFilament / ❓┊help
3y ago
BelongsToMany TextColumn first_name last_name searchable
FilamentFFilament / ❓┊help
3y ago
Sort by pivot date
FilamentFFilament / ❓┊help
2y ago
Searchable either name or barcode
FilamentFFilament / ❓┊help
2y ago