I have a form for uploading Excel, But While uploading Excel to the system it's showing Error like this
Undefined array key "Sheet 1"
The package is used upload excel is laravel Maatwebsite\Excel\Facades\Excel;
Excel::import(new NewProducts($import->id), $path)->chain([
new AfterImport($import->id)
]);
Finally, I got the solution it was a problem with packages, I have updated the package phpoffice/phpspreadsheet. Now working fine
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.