No error is returned in controller #3187
Unanswered
felixkwasisarpong
asked this question in
Q&A
Replies: 2 comments 13 replies
-
I've already replied to your previous question: #3182 I'd prefer to keep the related questions in 1 thread, thanks. If you follow the documentation correctly, you'll see that if yo use skip failures doesn't need to try catch. Please have another look at the link I shared yesterday: https://docs.laravel-excel.com/3.1/imports/validation.html#skipping-errors |
Beta Was this translation helpful? Give feedback.
12 replies
-
How can I add onSkipfailures and also catch errors in controller since that's what i want to achieve. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Versions
Description
I'm working on an Import class that uses concerns WithHeadingRow and WithValidation. I've copied the try/catch in the docs for gathering failures, but the no error is generated even though the excel contains an error.However the onFailure function throws the errors.
Steps to Reproduce
Relevant controller code:
Relevant import class code:
Beta Was this translation helpful? Give feedback.
All reactions