Marko Andonov
Searchable columns not working with applySearchToTableQuery
Hi guys I am facing an issue when using
->searchable()
on columns in the resource table but when using the applySearchToTableQuery function into ListRecords class then the searchable columns are not included and the query doesn't work right.
So I can either search with ->searchable()
or with the applySearchToTableQuery
function.
I am having Order with many Tickets (hasMany) and I want into the OrderResource to search by order id, name, email, etc... but also to modify the search query to search the tickets by their first_name, last_name and email.
- Filament version: "filament/filament": "3.2.2",
- ListRecords applySearchToTableQuery
So the only way to make this work is to include them into my OrderResource with toggable option and to comment the applySearchToTableQuery.
- OrderResource toggable columns
2 replies