Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recatcha v3 setup on laravel 10 #101

Open
srakl opened this issue Mar 7, 2024 · 3 comments
Open

recatcha v3 setup on laravel 10 #101

srakl opened this issue Mar 7, 2024 · 3 comments

Comments

@srakl
Copy link

srakl commented Mar 7, 2024

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]
@teetlaja
Copy link

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

@KamilWojtalak
Copy link

same issue there

@KamilWojtalak
Copy link

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

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

Bon appetit!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants