title: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'g-recaptcha-response' in 'where clause'
body: <p>I get an error when using google reCaptcha. When installing reCaptcha there is no problem. But when I enter it into validation, an error like this occurs.</p>
  <pre><code>SQLSTATE[42S22]: Column not found: 1054 Unknown column 'g-recaptcha-response' in 'where clause'
  </code></pre>
  <p><a href="https://i.stack.imgur.com/VJ8cB.png" rel="nofollow noreferrer">screen_login_form</a> <br>
  <a href="https://i.stack.imgur.com/xcwHD.png" rel="nofollow noreferrer">screen_error</a> <br>
  <a href="https://i.stack.imgur.com/bluR3.png" rel="nofollow noreferrer">screen_login_view</a> <br>
  <a href="https://i.stack.imgur.com/GYr8s.png" rel="nofollow noreferrer">screen_login_controller</a> <br></p>
  <hr />
  <p>my view (u_login.blade.php):</p>
  <pre><code>&lt;form method=&quot;POST&quot; action=&quot;/login/cek&quot; class=&quot;form-container form-bg&quot;&gt;
   @csrf
   &lt;div&gt;
     &lt;h1 class=&quot;h3 font-weight-bold text-success&quot;&gt;LOGIN&lt;/h1&gt;
     @error('g-recaptcha-response')
     &lt;label class=&quot;font-weight-normal mb-4 mt-1 text-danger&quot;&gt;&lt;small&gt;Login gagal.&lt;/small&gt;&lt;/label&gt;
     enderror
   &lt;/div&gt;
  
   &lt;div class=&quot;form-group mb-1&quot;&gt;
     &lt;input name=&quot;email&quot; type=&quot;email&quot; placeholder=&quot;Email&quot; autofocus required&gt;
   &lt;/div&gt;
                          
   &lt;div class=&quot;form-group&quot;&gt;
     &lt;input type=&quot;password&quot; name=&quot;password&quot; placeholder=&quot;Password&quot; required&gt;
   &lt;/div&gt;
  
   &lt;div class=&quot;form-group d-flex justify-content-center&quot;&gt;
     {!! NoCaptcha::renderJs('id', false, 'recaptchaCallback') !!}
     {!! NoCaptcha::display() !!}
   &lt;/div&gt;
  
   &lt;button type=&quot;submit&quot; name=&quot;masuk&quot; class=&quot;btn btn-lg btn-success btn-block mb-2&quot; name=&quot;logout&quot;&gt;Masuk&lt;/button&gt;
   &lt;div class=&quot;form-footer&quot;&gt;
     &lt;p&gt; Belum punya akun? &lt;a href=&quot;/register&quot;&gt;Daftar di sini&lt;/a&gt;&lt;/p&gt;
   &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  <p>my controller (u_auth.php):</p>
  <pre><code>public function authenticate(Request $request)
      {   
          $credentials = $request-&gt;validate([
              'email' =&gt; 'required|email:rfc,dns',
              'password' =&gt; 'required',
              'g-recaptcha-response' =&gt; 'required|captcha'
          ]);
  
          // JIKA LOGIN BERHASIL
          if (Auth::attempt($credentials)) {
              $request-&gt;session()-&gt;regenerate();
              //dd($credentials);
              return redirect()-&gt;intended('')-&gt;withToastSuccess('Berhasil masuk!');
          }
          // JIKA LOGIN GAGAL
          return back()-&gt;with('toast_error', 'Login gagal!');
      }
  </code></pre>
  <p>please help me solve this problem with your best solution.</p>