samuelterra22 / laravel-report-generator

Rapidly Generate Simple Pdf & Excel Report Package on Laravel
https://packagist.org/packages/samuelterra22/laravel-report-generator
MIT License
11 stars 4 forks source link

Call to undefined method Maatwebsite\Excel\Excel::create() #9

Open heidilux opened 3 years ago

heidilux commented 3 years ago

It seems that with the maatwebsite/excel dependency bump to 3.1, the ExcelReport no longer functions.

See: https://docs.laravel-excel.com/3.1/getting-started/upgrade.html

Deprecations

ALL Laravel Excel 2.* methods are deprecated and will not be able to use in 3.0 .

Excel::load() is removed and replaced by Excel::import($yourImport) Excel::create() is removed and replaced by Excel::download/Excel::store($yourExport) Excel::create()->string('xlsx') is removed an replaced by Excel::raw($yourExport, Excel::XLSX) 3.0 provides no convenience methods for styling, you are encouraged to use PhpSpreadsheets native methods.

In this case, I'm running into an issue at ExcelReport::make() ln:153, but there are likely others.

Do you intend to update this library to work with v3.1 of maatwebsite/excel dependency?

Bilaltariq007 commented 2 months ago

Get any solution? Or any good alternative?