'https://google.com/recaptcha/api/' ]); // Send data to google recaptcha $response = $client->post('siteverify', [ 'query'=> [ 'secret'=> env('NOCAPTCHA_SITEKEY'), 'response' => $value ] ]); dd($response); } /** * Get the validation error message. * * @return string */ public function message() { // Message return 'ReCaptcha verification failed.'; } }