有没有办法从输入中分离验证器?例如
$input->getValidatorChain()
->attach('email_address')
->attach('no_record_exists');
if($isExistingUser == true) {
$input->getValidatorChain()
->remove('no_record_exists');
}
有没有办法从输入中分离验证器?例如
$input->getValidatorChain()
->attach('email_address')
->attach('no_record_exists');
if($isExistingUser == true) {
$input->getValidatorChain()
->remove('no_record_exists');
}