lundi 21 juin 2021

The query did not execute properly

$data = User::where('inet_id', "like", "%" . $inet . "%")
         ->orWhere('email', "like", "%" . $email . "%")
         ->orWhere('phone', "like", "%" . $phone . "%")
         ->get();
  1. It only executes the query when searching all 3 data once. But I want to search by separate data too.


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3gIrsRu
via IFTTT

2 commentaires: