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:Jump to 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:
```php
protected function applySearchToTableQuery(Builder $query): Builder...
4 Replies
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:
to he List page it will be included.
do you meand ->visible() or isVisible() methods ?
no,
->toggleable( isHiddenByDefault: true)
oh yes, thx. but the "applySearchToTableQuery" solution fits nicely, thx