laravel where in array eloquent code example
Example 1: laravel where in array
$items = DB::table('items')->whereIn('id',[1,2,..])->get();
Example 2: laravel where in array
$items = Item::whereIn('id', [1,2,..])->get();
Example 3: where is in array laravel
$items = DB::table('items')->whereIn('id', [1, 2, 3])->get();