Hasan Tahseen
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
6 replies
Select Field Relationship have no limit
I have over 1M record for projects table. when I use the code below it will get all the projects without any limit for it which making the website not responding.
In order to make the select works I need to explicitly use
limit
in options
and getSearchResultsUsing
is there any better way to do it? and why there is no limit in relationship
method?13 replies