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