Dostosuj korpus odpowiedzi za pomocą filtrów Laravel
$filtered = $collection->whereIn('id', [1, 2, 3, 4]);
death sentence
$filtered = $collection->whereIn('id', [1, 2, 3, 4]);
$collection = collect($response->json()['data']);
$collection = collect($response->json()['data']);