I want to search within my user records those who have a phone that matches the array that I send, but I would like to use a "like%%", to independently search whether or not the phone has the "+52" example. this is my code that only brings when the phone matches
$directory= $request->phones;
$new_arr = array_map('trim', explode(',', $directory));
$users= USER::whereIn('phone', $new_arr)
->distinct()
->get();