-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get current row number #2001
Comments
@dalholm you can keep state in your import object.
|
@patrickbrouwers so simple, worked like a charm. Thanks! 👍 |
So, how do it at chunk reading? |
@weiwait yes - any way of checking the row count in a chunked import? |
|
Since this is still showing up in search results and nobody mentioned it yet: There is official documentation on how to keep track of the row number using the
Only usage is with models, though, no collections. |
Is there a way to get the same for an export? I can't find it in the docs https://docs.laravel-excel.com/3.1/exports/exportables.html |
I did this and working perfectly.
|
Worked for me thank you |
Does not work when skipEmptyRows is used. I want to feedback to the user which row they have an issue with but it gets out of sync if they have any empty rows. |
Prerequisites
Versions
Description
Im using ToModel in my import and need to store the current row number.
How do i do that? :)
The text was updated successfully, but these errors were encountered: