protected function getRecaptchaResult()
    {
        $response = $this->guzzle->request(
            'POST',
            'https://www.google.com/recaptcha/api/siteverify',
            [
                'timeout'   => 2.0,
                'query'     => [
                    'secret'    => $this->config->get('antispam.recaptcha.secret', ''),
                    'response'  => $this->request->get('g-recaptcha-response', ''),
                    'remoteip'  => $this->request->getClientIp(),
                ],
            ]
        );

        return json_decode($response->getBody()->getContents());
    }
protected function getRecaptchaResult()
    {
        $response = $this->guzzle->request(
            'POST',
            'https://www.google.com/recaptcha/api/siteverify',
            [
                'timeout'   => 2.0,
                'query'     => [
                    'secret'    => $this->config->get('antispam.recaptcha.secret', ''),
                    'response'  => $this->request->get('g-recaptcha-response', ''),
                    'remoteip'  => $this->request->getClientIp(),
                ],
            ]
        );

        return json_decode($response->getBody()->getContents());
    }
protected function getRecaptchaResult ( ) { $ response = $ this -> guzzle -> request ( 'POST' , 'https://www.google.com/recaptcha/api/siteverify' , [ 'timeout' => 2.0 , 'query' => [ 'secret' => $ this -> config -> get ( 'antispam.recaptcha.secret' , '' ) , 'response' => $ this -> request -> get ( 'g-recaptcha-response' , '' ) , 'remoteip' => $ this -> request -> getClientIp ( ) , ] , ] ) ; return json_decode ( $ response -> getBody ( ) -> getContents ( ) ) ; }
Perform curl request

@return mixed
Perform curl request