Validation rule : required_unless

#1

In laravel there is a validation rule require_unless
With this rule it is possible to require a field when another field is fieled in.

Is there such a validation rule in adonis ?

BTW where can i find a list ith available validation rules?
Cant find them in the manual

0 Likes

#2

:wave:

Adonis uses Indicative behind the scenes.

Adonis also provides a way to extend the validator as well.

Hope this helps.

0 Likes