albertcht / invisible-recaptcha

An invisible reCAPTCHA package for Laravel, Lumen, CI or native PHP.
MIT License
601 stars 162 forks source link

Proxy support #131

Closed bsh closed 2 years ago

bsh commented 3 years ago

Please add proxy support.

new Client([
'timeout' => $this->getOption('timeout', 5),
'proxy' => $this->proxy
])
albertcht commented 3 years ago

You can replace guzzle client in your service provider by:

$this->app->resolving('captcha', function ($captcha) {
    $captcha->setClient(
        new Client([
            'timeout' => $this->getOption('timeout', 5),
            'proxy' => $this->proxy
        ]);
    );
});