/home/techb158/immovalet.com/vendor/maatwebsite/excel/src/Mixins
Edit: /home/techb158/immovalet.com/vendor/maatwebsite/excel/src/Mixins/DownloadCollection.php (2132B)
collection = $collection->toBase();
$this->withHeadings = $withHeading;
}
/**
* @return Collection
*/
public function collection()
{
return $this->collection;
}
/**
* @return array
*/
public function headings(): array
{
if (!$this->withHeadings) {
return [];
}
$firstRow = $this->collection->first();
if ($firstRow instanceof Arrayable || \is_object($firstRow)) {
return array_keys(Sheet::mapArraybleRow($firstRow));
}
return $this->collection->collapse()->keys()->all();
}
};
return $export->download($fileName, $writerType);
};
}
}