first()->map(fn ($h) => strtolower(trim($h)))->toArray(); foreach ($collection->skip(1) as $row) { $item = []; foreach ($header as $i => $key) { $item[$key] = $row[$i] ?? null; } if (!empty($item['description'])) { $this->rows[] = $item; } } } }