Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $id = 1;
- $email = 'email@gmail.com';
- $user = DB::table('users')->where([
- ['id', '=', $id],
- ['email', '=', $email]
- ])->toSql();
- dd($user);
- select * from `users` where (`id` = ? and `email` = ?)
- select * from `users` where (`id` = 1 and `email` = email@gmail.com)
Add Comment
Please, Sign In to add comment