biscolab / laravel-recaptcha

Google ReCaptcha package for Laravel
https://github.com/biscolab/laravel-recaptcha#readme
MIT License
510 stars 62 forks source link

recatcha v3 setup on laravel 10 #101

Open srakl opened 4 months ago

srakl commented 4 months ago

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:

teetlaja commented 3 months ago

Having the same issue, same environment. And without that, though getting validation: false, form submission still will be triggered.

KamilWojtalak commented 2 months ago

same issue there

KamilWojtalak commented 2 months ago

I have made a laravel recaptcha v3 package, since this issue is not resolved.

https://github.com/KamilWojtalak/Laravel-Recaptcha-v3

Bon appetit!