How to perform Excel Import Analysis #3361
-
I am performing Excel file upload using PHP-7.4, Laravel-8 and Maatwebsite-3.1 package. Import:
Controller:
How do I get the following:
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Successful rows: https://docs.laravel-excel.com/3.1/architecture/objects.html#getters |
Beta Was this translation helpful? Give feedback.
-
@patrickbrouwers - I went through the documentation and I was able to get the count for successful uploads (see my updated code) Can you show me using example how I can:
Thanks |
Beta Was this translation helpful? Give feedback.
Successful rows: https://docs.laravel-excel.com/3.1/architecture/objects.html#getters
Count failed rows with import->failures().
Add the two for the total rows (or use PhpSpreadsheet to get the total row count)