Search for a value which does not exist in the filament table column

How do we search for a column which exists in the database but it is not required to be shown to the user. For example age is a column in the database table. However, the same column is not required to be shown in the filament list table. How do I achieve it?
2 Replies
Patrick Boivin
Patrick Boivin15mo ago
You can include multiple columns in the call to searchable(). I think this will support DB columns not visible in the table as well:
TextColumn::make('full_name')
->searchable(['first_name', 'last_name'])
TextColumn::make('full_name')
->searchable(['first_name', 'last_name'])
CaptainJoker
CaptainJokerOP15mo ago
Thank you @pboivin
Want results from more Discord servers?
Add your server