rap2hpoutre / fast-excel

🦉 Fast Excel import/export for Laravel
MIT License
2.11k stars 247 forks source link

Call to undefined method Box\Spout\Writer\CSV\Writer::getCurrentSheet() #244

Open apurbajnu opened 3 years ago

apurbajnu commented 3 years ago

Why I am getting this error? $this->ExportArticles($shopId); $row_collections = collect($this->rows); $blog_collection = collect($this->blogs); $sheets = new SheetCollection([ 'articles' =>$row_collections, 'blogs' => $blog_collection ]); (new FastExcel($sheets))->export('articles.csv');

mikolamin commented 1 year ago

Have the same issue !

mikolamin commented 1 year ago

You should use OpenSpout https://github.com/rap2hpoutre/fast-excel/issues/275

se7uh commented 6 months ago

csv doesn't support multiple sheets. try using xlsx