Laravel orWhere Condition using Eloquent Query
https://www.itsolutionstuff.com/post/laravel-orwhere-condition-using-eloquent-queryexample.html
Last updated
https://www.itsolutionstuff.com/post/laravel-orwhere-condition-using-eloquent-queryexample.html
Last updated
orWhere(Coulumn_name, Value);SELECT * FROM users WHERE id = '23' OR email = 'itsolutionstuff@gmail.com'public function index(){ $users = DB::table('users') ->where('id', 23) ->orWhere('email', 'itsolutionstuff@gmail.com') ->get(); dd($users); }public function index(){ $users = User::select("*") ->where('id', 23) ->orWhere('email', 'itsolutionstuff@gmail.com') ->get(); dd($users); }