© 2026 Hedgehog Software, LLC

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

Search also in hidden or not used columns

How can I include a column which I dont use in a table also in the table serach? I tried to hidde the column, but then it will be ignored when searching.
Solution
If you have it as included but toggle it's visibility to hidden by default it will be included in the search.

Or if you adjust the table search query with say:
    protected function applySearchToTableQuery(Builder $query): Builder
    {
        if (filled($searchQuery = $this->getTableSearch())) {

            $query->where('my_column', 'like', '%'.$searchQuery.'%');
        }

        return $query;
    }
    protected function applySearchToTableQuery(Builder $query): Builder
    {
        if (filled($searchQuery = $this->getTableSearch())) {

            $query->where('my_column', 'like', '%'.$searchQuery.'%');
        }

        return $query;
    }


to he List page it will be included.
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

Is it possible to include hidden columns in search?
FilamentFFilament / ❓┊help
2y ago
Search in hidden column
FilamentFFilament / ❓┊help
3y ago
Searching for values in hidden columns
FilamentFFilament / ❓┊help
2y ago
Include sorting of hidden columns
FilamentFFilament / ❓┊help
2y ago