laravel-recaptcha icon indicating copy to clipboard operation
laravel-recaptcha copied to clipboard

recatcha v3 setup on laravel 10

Open srakl opened this issue 11 months ago • 3 comments

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]

srakl avatar Mar 07 '24 11:03 srakl

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

teetlaja avatar Apr 12 '24 15:04 teetlaja

same issue there

KamilWojtalak avatar May 21 '24 11:05 KamilWojtalak

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

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

Bon appetit!

KamilWojtalak avatar May 22 '24 06:05 KamilWojtalak