Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
well, unique and should return false if there is already a record with such an empty field. As a matter of fact, without going into the details of the fact that you have some kind of crap there, look towards skipOnEmpty
[['field_name'], 'string', 'skipOnEmpty' => true], //у стринг валидатора по-умолчанию и так 'skipOnEmpty' => true
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question