lundi 21 juin 2021

why is my query not working adding like %%

$data = User::WhereRaw("concat(first_name, ' ', last_name) like '%$request->user_name%'")
->orwhere('inet_id',"like", "%" .$request->active_id. "%")
->orwhere('email',"like", "%" . $request->email. "%")
->orwhere('phone',"like", "%" . $request->phone . "%")->get();
  1. Why is my query not working adding like %% .


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

3 commentaires: