title: laravel 5.2 greggilbert/recaptcha : Please ensure that you are a human
body: <p>I used greggilbert/recaptcha in my laravel 5.2 project. Though the form data are valid, after submit the form I always get the error message: Please ensure that you are a human!</p>
  
  <p>I tried a lot but do not find any solution. Do you anybody  help me? pls.</p>
  
  <p>I used these codes:</p>
  
  <p>In the Form:</p>
  
  <pre><code> &lt;div class="form-group"&gt;
              &lt;div class="input-group"&gt;
                  {!! Recaptcha::render() !!}
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>To get Error Message,</p>
  
  <pre><code>@section('message')
  @if (count($errors) &gt; 0)
      &lt;h3&gt;Message Sending Failed!&lt;/h3&gt;
      &lt;ul&gt;
          @foreach ($errors-&gt;all() as $error)
              &lt;li&gt;{{ $error }}&lt;/li&gt;
          @endforeach
      &lt;/ul&gt;
  @else
      &lt;h3&gt;
          @if(isset($heading))
              {{$heading}}
          @endif
      &lt;/h3&gt;
      &lt;p&gt;
          @if(isset($body))
              {{$body}}
          @endif
      &lt;/p&gt;
  @endif
  
  @endsection
  </code></pre>
  
  <p>In the Controller:</p>
  
  <pre><code>public function save(Request $request){
  
      $this-&gt;validate($request, [
          'Name' =&gt; 'required|max:40',
          'Email' =&gt; 'email|required',
          'Heading' =&gt; 'required|max:200',
          'Message' =&gt; 'required|max:1000',
          'g-recaptcha-response' =&gt; 'required|recaptcha',
      ]);
  
      $contact = new Contact();
  
      $contact-&gt;name = $request-&gt;Name;
      $contact-&gt;email = $request-&gt;Email;
      $contact-&gt;heading = $request-&gt;Heading;
      $contact-&gt;message = $request-&gt;Message;
  
      $contact-&gt;save();
  
      $msg['heading'] = 'Thank You! for contacting us.';
      $msg['body'] = 'We will try to Answer to your Query as soon as possible.';
  
      return redirect('/contact')-&gt;with($msg);
  
  }
  </code></pre>
  
  <p>In the config/recaptcha.php</p>
  
  <pre><code>'public_key'     =&gt; env('RECAPTCHA_PUBLIC_KEY', '6LfjMiETAA_Rest of the key Hidden'),
  'private_key'    =&gt; env('RECAPTCHA_PRIVATE_KEY', '6LfjMi_Rest of the key Hidden'),
  </code></pre>