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.


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire