laravel-recaptcha
laravel-recaptcha copied to clipboard
recatcha v3 setup on laravel 10
Describe the bug
Call to undefined method Biscolab\ReCaptcha\ReCaptchaBuilderV3::htmlFormSnippet()
To Reproduce i followed the steps in documentation, when i add this in header
<!-- ReCaptcha v3 -->
{!! ReCaptcha::htmlScriptTagJsApiV3() !!}
and this in form
<form method="post" action="{{ route('contact.send') }}">
@csrf
{!! htmlFormSnippet() !!}
</form>
i get this error when i load the page,
``Call to undefined method Biscolab\ReCaptcha\ReCaptchaBuilderV3::htmlFormSnippet()`
how do i fix this? Thank you.
Environment:
- PHP version [8.1]
- Laravel version [10]
- Package version [6]
Having the same issue, same environment. And without that, though getting validation: false
, form submission still will be triggered.
same issue there
I have made a laravel recaptcha v3 package, since this issue is not resolved.
https://github.com/KamilWojtalak/Laravel-Recaptcha-v3
Bon appetit!