title: Laravel user auth check "enabled" column as well as email and password
body: <p>I have:</p>
  
  <pre><code>if ($validator-&gt;fails()) {
              return Redirect::to('/start')-&gt;withErrors($validator);
          } else {
              if (Auth::attempt(array('email' =&gt; $input['email'], 'password' =&gt; $input['password'])))
              {
                  echo 'success';
              }
          }
  </code></pre>
  
  <p>There is another column in my users table called enabled. This needs to equal 1 for the user attempting to log in, otherwise they should be sent back to the log in screen with a message telling them that the account is disabled.</p>
  
  <p>How can I achieve this?</p>
  
  <hr>
  
  <pre><code>$details = array('email' =&gt; $input['email'], 'password' =&gt; $input['password']);
      if (Auth::user()-&gt;enabled) {
          if(Auth::attempt($details)) {
              echo 'success';
          }
      } else {
          echo 'disabled!';
      }
  </code></pre>