use Phalcon\Validation\Validator;
$validator->add('g-recaptcha-response', new Validator([
'message' => 'The captcha is not valid',
'secret' => 'your_site_key'
]));
Mostrar archivo
Open project: phalcon/incubator
Property | Type | Description | |
---|---|---|---|
$messages | array | Response error code reference |
Method | Description | |
---|---|---|
validate ( Phalcon\Validation $validation, string $attribute ) : boolean |
protected array $messages | ||
return | array |