The query did not execute properly

  eloquent, laravel, laravel-5
$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.

Source: Laravel

Leave a Reply