Wie Bedingung für mehrere Zeile durch oder wo Laravel
if ($request->search) {
$users = User::where('type', '=', 'Customer')
->where(function ($query) use ($request) {
$query->where('name', "like", "%" . $request->search . "%");
$query->orWhere('mobile', "like", "%" . $request->search . "%");
})->get();
}
Mohamad