SHARE
TWEET

Untitled

a guest Jun 27th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT  * from  exampleTbl where id in(1,2,3,4)
  2.      
  3. DB::where("id IN(23,25)")->get()
  4.      
  5. $users = User::whereIn('id', array(1, 2, 3))->get();
  6.      
  7. $users = DB::table('users')->whereIn('id', array(1, 2, 3))->get();
  8.      
  9. DB::table(Newsletter Subscription)
  10. ->select('*')
  11. ->whereIn('id', $send_users_list)
  12. ->get()
  13.      
  14. $sendUsersList = Newsletter Subscription:: select ('*')
  15.                 ->whereIn('id', $send_users_list)
  16.                 ->get();
  17.      
  18. $data = Model::whereIn('field_name', [1, 2, 3])->get();
  19.      
  20. $usersList = Users::whereIn('id', [1, 2, 3])->get();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top