Guest User

Untitled

a guest
Feb 25th, 2018
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. $id = 1;
  2. $email = 'email@gmail.com';
  3.  
  4. $user = DB::table('users')->where([
  5. ['id', '=', $id],
  6. ['email', '=', $email]
  7. ])->toSql();
  8. dd($user);
  9.  
  10. select * from `users` where (`id` = ? and `email` = ?)
  11.  
  12. select * from `users` where (`id` = 1 and `email` = email@gmail.com)
Add Comment
Please, Sign In to add comment