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
public function getRules(): array { return [ 'submitForVerification' => [ new Required, new BooleanValue, ], 'tasks' => [ new Each( new Nested([ 'push' => [ new Nested([ 'isEnabled' => [ new Required(when: fn() => $this->submitForVerification), new BooleanValue, ], 'content' => [ new Required(when: [???]), ], ]) ], ]) ) ], ]; }
I can set Required validator for content dependent on his sibling isEnabled value.
content
isEnabled
It cannot be done? Or it'll be ugly solution.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What steps will reproduce the problem?
What is the expected result?
I can set Required validator for
content
dependent on his siblingisEnabled
value.What do you get instead?
It cannot be done? Or it'll be ugly solution.
Additional info
The text was updated successfully, but these errors were encountered: