0

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)
]);

1 Answer 1

1

Finally, I got the solution it was a problem with packages, I have updated the package phpoffice/phpspreadsheet. Now working fine

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.