array in laravel where 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();
$items = DB::table('items')->whereIn('id',[1,2,..])->get();
$items = Item::whereIn('id', [1,2,..])->get();