Replies: 1 comment 1 reply
-
@noblemfd Please Share Logs. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Using Laravel-5.8 and Maatwebsite-3.1, I have a table called employees (Employee).
Excel Import:
Here is my Controller function
Controller:
Finally the view blade error message:
I want to use the excel upload to update these two (2) fields: email and grade_level_id for each of the employees where:
company_id = Auth::user()->company_id AND employee_code = $row['staff_id'].
Also, it should only perform the update for those that meet the condition. I should only perform update and don't create.
I observe that when there is failure, it won't update failed message but it will only exclude the failed ones. Also it will display Success, and yet some did not meet the condition (though it won't update those ones.)
In the controller, I dd($import);
But got this:
Yes, some failed.
How do I correct this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions