title: Login a user only if his status is active in Laravel 5.7
body: <p>I am new to Laravel and have been fairly successful in implementing user authentication. Now to move on to the next step I must allow only users whose status in active to login. For that I have added a</p>
  
  <pre><code>status TINYINT
  </code></pre>
  
  <p>column in my mysql users table.</p>
  
  <p>I found this in the Laravel Documentation:</p>
  
  <blockquote>
    <p>Specifying Additional Conditions</p>
    
    <p>If you wish, you may also add extra conditions to the authentication
    query in addition to the user's e-mail and password. For example, we
    may verify that user is marked as "active":</p>
  
  <pre><code>if (Auth::attempt(['email' =&gt; $email, 'password' =&gt; $password, 'active' =&gt; 1])) {
  // The user is active, not suspended, and exists.
  }
  </code></pre>
  </blockquote>
  
  <p>Can someone please point out where I need to put this chunk. Am thoroughly confused and need some pointers.</p>
  
  <p>Thanks</p>