Closed mohamed-hendawy closed 6 years ago
Will add it
@thetutlage thanks and i wait it :D
Ohh the required_when
rule already exists. Docs here http://indicative.adonisjs.com/#indicative-schema-rules
Just search for required_when
i know that required_when rule already exists but there a bug in it try to use it with true or false like this
{
field2: 'required_when:field1,false'
}
when field1 is false field2 does not requierd
Fixed in 4.0
when use required_when with field it's value false it does not work
field 2 is not required if field1 value is false