josiasmontag / laravel-recaptchav3

Laravel package for Google's Recaptcha V3
MIT License
188 stars 37 forks source link

Add error message #6

Closed djoey123 closed 4 years ago

djoey123 commented 5 years ago

Is it possible to add an error message if the score is lower then required? with use of the validator?

josiasmontag commented 5 years ago

Add the following values to the custom array in the validation language file :

'custom' => [
    'g-recaptcha-response' => [
        'recaptchav3' => 'Captcha error message',
    ],
],