SHARE
TWEET

Untitled

a guest Jul 18th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. BookingDates::where('email', Input::get('email'))->orWhere('name', 'like', Input::get('name'))->get()
  2.      
  3. select * from booking_dates where email='my@email.com' or name like '%John%'
  4.      
  5. BookingDates::where('email', Input::get('email'))
  6.     ->orWhere('name', 'like', '%' . Input::get('name') . '%')->get();
  7.      
  8. BookingDates::whereRaw('email = ? or name like ?', [$request->email,"%{$request->name}%"])->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