publicfunctiongetRules(): array
{
return [
'submitForVerification' => [
newRequired,
newBooleanValue,
],
'tasks' => [
newEach(
newNested([
'push' => [
newNested([
'isEnabled' => [
newRequired(when: fn() => $this->submitForVerification),
newBooleanValue,
],
'content' => [
newRequired(when: [???]),
],
])
],
])
)
],
];
}It cannot be done? Or it'll be ugly solution.
What steps will reproduce the problem?
What is the expected result?
I can set Required validator for
contentdependent on his siblingisEnabledvalue.What do you get instead?
It cannot be done? Or it'll be ugly solution.
Additional info