DB::table('user')->whereIn('id', [100,200])->get();
public function index()
{
$data= User::whereIn('name', ['john','dam','smith'])->get();
dd($data);
}
$users = User::whereIn('id', [1,2,3,4])->get();
$users = DB::table('users')
->whereIn('id', [1, 2, 3])
->get();
$users = User::whereIn('id', array(1, 2, 3))->get();
Question::whereIn('id', $request)
->update(
[
'status' => 1
]
);
DB::table('user')->whereIn('id', [100,200])->get();
$users = User::whereIn('id', array(1, 2, 3))->get();