title: Google's reCAPTCHA verification
body: <p>I'm a newbie in web development (or development) and I'm using Laravel (if it matters somehow). I have a reCAPTCHA in my form. It works, but now I have to verify user's keyword in recaptcha. </p>
  
  <p>Documentation: <a href="https://developers.google.com/recaptcha/docs/verify" rel="nofollow">https://developers.google.com/recaptcha/docs/verify</a> sounds simple, but somehow I can't write the code lines for verification. I was looking for some examples, but they're not for Laravel but for pure PHP, and I didn't see where is the '<a href="https://www.google.com/recaptcha/api/siteverify?secret=your_secret&amp;response=response_string&amp;remoteip=user_ip_address" rel="nofollow">https://www.google.com/recaptcha/api/siteverify?secret=your_secret&amp;response=response_string&amp;remoteip=user_ip_address</a>' URL used in the examples. </p>
  
  <p>My controller is:</p>
  
  <pre><code>public function postMessage() {
  
      require_once('recaptchalib.php');
      $privatekey = "MY_PRIVATE_KEY";
  
      ?????
  
      // this should be executed only after validation 
      DB::table('messages')-&gt;insert(['name' =&gt; Input::get('name'),
                                     'email' =&gt; Input::get('email'),
                                     'message' =&gt; Input::get('message'),
                                     'datetime' =&gt; \Carbon\Carbon::now()-&gt;toDateTimeString()]);
  </code></pre>
  
  <p>So please, instruct me, how could i get JSON object with response, or what should I write instead of ?????</p>