Skip to content

Get the index when validating a row #2523

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

Merged
merged 2 commits into from
Feb 28, 2020
Merged

Conversation

mtawil
Copy link
Contributor

@mtawil mtawil commented Jan 24, 2020

Here is how we get the index of a row:
https://github.com/Maatwebsite/Laravel-Excel/blob/3.1/src/Validators/RowValidator.php#L45

The index is always zero when using validation with onRow unless we set it as a key then pass to the validator.

Requirements

Please take note of our contributing guidelines: https://docs.laravel-excel.com/3.1/getting-started/contributing.html
Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.

Mark the following tasks as done:

  • Checked the codebase to ensure that your feature doesn't already exist.
  • Checked the pull requests to ensure that another person hasn't already submitted the feature or fix.
  • Adjusted the Documentation.
  • Added tests to ensure against regression.

Description of the Change

Why Should This Be Added?

Benefits

Possible Drawbacks

Verification Process

Applicable Issues

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Here is how we get the index of a row:
https://github.com/Maatwebsite/Laravel-Excel/blob/3.1/src/Validators/RowValidator.php#L45

The index is always zero when using validation with `onRow` unless we set it as a key then pass to the validator.
@patrickbrouwers patrickbrouwers merged commit 129f1f5 into SpartnerNL:3.1 Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants