-
-
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
[Bug]: required_without
and required_without_all
validation not working properly.
#4128
Comments
Did you try just adding it manually? 'required_without_all:*.first_name,*.last_name', |
Hey @sinnbeck, That doesn't work either, what does work is what I currently have as a workaround: 'required_without_all:first_name,*.last_name', The asterisk already gets added for Nonetheless, it is still a bug even if your answer works, as the package does add asterisks for the other |
If it works for required and not for required_without_all, please add a failing unit test as PR. |
Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?
What version of Laravel Excel are you using?
3.1.55
What version of Laravel are you using?
10.48.10
What version of PHP are you using?
8.2.16
Describe your issue
I am doing a user import as follows
The
RowValidator
classformatRules
function doesn't properly format these rules as this is the output from that functionHow can the issue be reproduced?
See example above
What should be the expected behaviour?
The expected output for the rules should be:
The text was updated successfully, but these errors were encountered: