title: Authenticate user on login - Laravel
body: <p>I am trying to authenticate use on login using this</p>
  
  <pre><code> //Attempt to auth the user
          if(! auth()-&gt;attempt(request(['email','password' =&gt; Hash::make(request('password'))])))                            
          {
  
              //If not redirect back
              return back()-&gt;withErrors([
  
                  'message' =&gt; 'Please check your email or password'
              ]);
          }
  </code></pre>
  
  <p>But I am getting this error..</p>
  
  <blockquote>
    <p>QueryException in Connection.php line 647:
    SQLSTATE[42S22]: Column not found: 1054 Unknown column '$2y$10$5ysCvqUiloxmtRo2comd9uaiaNkLJ0eiW6x5pDFGWESAbXr5jm5N6' in 'where clause' (SQL: select * from <code>users</code> where <code>email</code> is null and <code>$2y$10$5ysCvqUiloxmtRo2comd9uaiaNkLJ0eiW6x5pDFGWESAbXr5jm5N6</code> is null limit 1)</p>
  </blockquote>
  
  <p>Can please somebody help me this.
  Thank you :)</p>