biscolab / laravel-recaptcha

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

Call to undefined method Biscolab\ReCaptcha\ReCaptchaBuilderV2::htmlFormButton() #62

Closed byGits closed 2 years ago

byGits commented 2 years ago

Describe the bug Hi, thanks for the package, unfortunately I get the following error: Call to undefined method Biscolab\ReCaptcha\ReCaptchaBuilderV2::htmlFormButton()

When I remove {!! htmlFormButton() !!} the captcha appears correctly (without the submit button obviously).

Configs are set too, both in .env and recaptcha.php file.

I also tried {!! ReCaptcha::htmlFormButton() !!} and still the same, I'm using v2 but even if I change it to invisible in config, then I get this error instead: Call to undefined method Biscolab\ReCaptcha\ReCaptchaBuilderInvisible::htmlFormSnippet()

Environment:

biscolab commented 2 years ago

@byGits please check your configuration and follow instructions you can find at https://laravel-recaptcha-docs.biscolab.com/docs/how-to-use-v2: