Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
heidilux opened this issue Jan 12, 2021 · 0 comments
Open

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

heidilux opened this issue Jan 12, 2021 · 0 comments

Comments

@heidilux
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant