Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ufodisko's avatar
Level 10

How to override table view?

How can I customize/override the default of view of a table to add a secondary "header" under the columns heading? I want to add search input fields for each column.

I've tried every method so far and none of it works.

I tried getTableContents in ListUsers.php - no luck.

Is there a way?

0 likes
5 replies
jlrdw's avatar

Just use existing header, have a click event, then enter a search in perhaps a modal.

Just suggestion.

If filament doesn't allow, write your own table.

shaungbhone's avatar
Level 28

If you want to add search input field for each columns, you can use

Tables\Columns\TextColumn::make('email')
->label('Email address')
->searchable(isIndividual: true, isGlobal: false)
->sortable(),
2 likes
jaseofspades88's avatar

Why? Filament does everything you need from what you've described without having to override the default behaviour.

1 like

Please or to participate in this conversation.