Monday, March 13, 2017

reCAPTCHA Invisible with Laravel

I currently run into the issue that when I use reCAPTCHA invisible (with newly set API keys for it) my validator for 'g-recaptcha-response' => 'required|captcha' throws an error saying The g-recaptcha-response field is required.

I use a common form structure:

<form method="POST" action="">
    ...
    <div class="g-recaptcha" data-bind="recaptcha-submit" data-size="invisible" data-sitekey="sitekey"></div> 
    <button class="btn btn-primary btn-block" type="submit">Register</button>
</form>

Will the g-recaptcha field not automatically be filled with data?



via Chris Palmer Breuer

Advertisement