JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbrcollection = $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, $responseHeaders); }; } }