You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the Query Builder for building a search functionality for a index table.
My members table has a 'first_name' and a 'last_name' column, which are populated separetly.
For the search functionality, I want my users be able to search for the 'first_name' and 'last_name' combined as full_name. On my Member Model, there is a function fullName() which is giving the correct fullname.
But, sadly, I don't now how to implement that into the Query Builder and the global search. My code at this point is:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using the Query Builder for building a search functionality for a index table.
My members table has a 'first_name' and a 'last_name' column, which are populated separetly.
For the search functionality, I want my users be able to search for the 'first_name' and 'last_name' combined as full_name. On my Member Model, there is a function fullName() which is giving the correct fullname.
But, sadly, I don't now how to implement that into the Query Builder and the global search. My code at this point is:
I would be so glad if somebody could help me.
Beta Was this translation helpful? Give feedback.
All reactions