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