Add custom error to a model:
$model->addError('email', 'No valid account associated with this email address.');
Validate a model:
$model->validate();
$model->addError('email', 'No valid account associated with this email address.');
Validate a model:
$model->validate();
No comments:
Post a Comment