Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 1 year ago.
0

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 . '%');
}
0

Sign in to participate in this thread!

Eventy

Your banner here too?

weidmaster weidmaster Joined 24 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.