Have you considered programming in English? It's worldwide standard and I don't see any good reasons to not follow it.
Your code is not as readable for me as it could have been in English, I will not play with words matching puzzle. But I will try to answer your question with what I know. If you want to match ANY column, try to chain several orWhere()
calls to your query, like this:
foreach (['first_name', 'last_name', 'bio'] as $column) {
$query = $query->orWhere($column, 'LIKE', '%' . $needle . '%');
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community