laravel-excel
laravel-excel copied to clipboard
This package provides a way to export an Eloquent collection as an excel file and to import a Excel file as an Eloquent collection.
This update adds support for the Laravel 8 framework
I am trying to upgrade laravel application from php 7.3 to php 8.0. And I am facing this error.
`$collection = Importer::make('Excel')->load($filepath)->setParser(new ProductParser( $staff, array('value1') ))->getCollection();` how to skip the header row.?
Nice package but it seems it doesn't work with laravel 8
Currently I can get the data from my excel file, for every sheet I can get the data collection. The problem is, I want to sum up the value of...
i have this piece of code **memberController.php** ``` $serialiser = new Serialiser(); $excel = Exporter::make('Excel'); $excel->loadQuery($query); $excel->setSerialiser($serialiser); return $excel->stream('Members.xlsx'); ``` and i made a class inside App\CustomClass\ ``` use namespace...
_Disclaimer: Warning, I'm doing self-promotion! Feel free to close if it's not relevant!_ Since this package seems not maintained anymore, maybe you could add a link to the actual alternative:...
protected function open() { $reader = $this->createReader(); $this->callbacks->each(function ($elem) use (**&reader**) { call_user_func_array(array($reader, $elem[0]), $elem[1]); }); $reader->open($this->path); return $reader; } In above, at line 4, it should be $this->callbacks->each(function ($elem)...