laravel where in array

37

$items = Item::whereIn('id', [1,2,..])->get();
$items = DB::table('items')->whereIn('id',[1,2,..])->get();
$items = Item::whereIn('id', [1,2,..])->get();
$items = DB::table('items')->whereIn('id', [1, 2, 3])->get();

Comments

Submit
0 Comments