thinhbuzz / laravel-google-captcha

Google captcha for Laravel 5, Laravel 6, Laravel 7, Laravel 8, Laravel 9 and Laravel 10, support multiple captcha on page
MIT License
200 stars 32 forks source link

How to Set proxy in Laravel for buzz/laravel-google-captcha #39

Closed susovancode14 closed 4 years ago

susovancode14 commented 5 years ago

How to set the proxy for calling buzz/laravel-google-captcha

return [ 'secret' => env('CAPTCHA_SECRET', 'default_secret'), 'sitekey' => env('CAPTCHA_SITEKEY', 'default_sitekey'), /**

please help asap

thinhbuzz commented 5 years ago

You can set the proxy by setting request_methodwith your custom class, there is an existing class CurlPost.php You can see here: https://github.com/google/recaptcha/issues/46#issuecomment-381646581