/home/techb158/ileadtechnology.com/SSM/vendor/maatwebsite/excel/src/Mixins
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/maatwebsite/excel/src/Mixins/StoreCollection.php (1953B)
collection = $collection->toBase();
$this->withHeadings = $withHeadings;
}
/**
* @return Collection
*/
public function collection()
{
return $this->collection;
}
/**
* @return array
*/
public function headings(): array
{
if (!$this->withHeadings) {
return [];
}
return is_array($first = $this->collection->first())
? $this->collection->collapse()->keys()->all()
: array_keys($first->toArray());
}
};
return $export->store($filePath, $disk, $writerType);
};
}
}