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
Hi,
is there any way to validate with oneOf from the Respect validation package?
oneOf
v::oneOf( v::key('ip', v::notBlank()), v::key('q', v::notBlank()->alpha() )
Of course this works but does not contain validation messages like the validator method.
validator
I'd like to pass this to the validator to get the error messages in case there are some.
$validator = $this->validator->validate($request, [ 'ip' => v::optional(v::ip()), 'country' => v::optional(v::countryCode())->in($this->country_codes), v::oneOf( v::key('ip', v::notBlank()), v::key('q', v::notBlank()->alpha()) ) ]);
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
is there any way to validate with
oneOf
from the Respect validation package?Of course this works but does not contain validation messages like the
validator
method.I'd like to pass this to the validator to get the error messages in case there are some.
Thanks
The text was updated successfully, but these errors were encountered: