Confusing Attributes in getSearchResults Method For Select From Field
I came across this code in filament v3
My question is why the
query and search and searchQuery
keys in the evaluate method have value of $search
? this is confusing especially when I use query I expected a query builder not a search value. its need some refactoring on the values side or on the keys side of the array. Any suggestion or explanation for this part? I would suggest to make it look like this
Solution:Jump to solution
I would suggest to make it look like thisYou can implement this in your code, right? I don't think the change will happen because it's a breaking change....
3 Replies
My question is why the query and search and searchQuery keys in the evaluate method have value of $search?I guess it's some kind of legacy. Maybe started with
query
but found search
better and endedwith all 3 of them.Solution
I would suggest to make it look like thisYou can implement this in your code, right? I don't think the change will happen because it's a breaking change.
Ok, Sounds good. thanks for the clarifications