We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sometimes_without
Write a new validation rule called sometimes_without which will accept a list of fields, .e.g 'season' => 'sometimes_without:competition,division'.
'season' => 'sometimes_without:competition,division'
The rule will fail if the field is present (i.e. can be empty) and any of the fields in the rules is present too.
So in the example, the rule fails if season is present and either competition or division, or both, are present too.
season
competition
division
Blocking #141
The text was updated successfully, but these errors were encountered:
There is now a Laravel rule: prohibits
Sorry, something went wrong.
troccoli
No branches or pull requests
Write a new validation rule called
sometimes_without
which will accept a list of fields, .e.g'season' => 'sometimes_without:competition,division'
.The rule will fail if the field is present (i.e. can be empty) and any of the fields in the rules is present too.
So in the example, the rule fails if
season
is present and eithercompetition
ordivision
, or both, are present too.Blocking #141
The text was updated successfully, but these errors were encountered: