$file = $request->file('excel');
$reader = Excel::load($file->getRealPath())->get();
The following error appears:
Call to undefined method Maatwebsite\Excel\Facades\Excel::load()
I am using Maatwebsite 3 in laravel 5.7
The load
method has been removed in version 3.0 (may be re-added in 3.1). Please refer the upgrade guide
ALL Laravel Excel 2.* methods are deprecated and will not be able to use in 3.0 .
Excel::load()
is removed and will not be re-added until 3.1Excel::create()
is removed and replaced by Excel::download/Excel::store($yourExport)
v3.0
provides no convenience methods for styling, you are encouraged to use PhpSpreadsheets native methods.