Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants