title: How to check additional field during login in Laravel?
body: <p>How to check additional field during login in Laravel?</p>
  
  <p>Now it works from the box and accepts email and password. How to check additionally status parameter when user log in?</p>
  
  <p>I use this <code>LoginController</code>:</p>
  
  <pre><code>use App\Http\Controllers\Controller;
  use Illuminate\Foundation\Auth\AuthenticatesUsers;
  
  class LoginController extends Controller
  {
     use AuthenticatesUsers;
  }
  </code></pre>
  
  <p>I tried this in LoginController:</p>
  
  <pre><code>public function authenticate(Request $request)
      {
          $credentials = $request-&gt;only('email', 'password');
          $credentials['status'] = 1;
  
          if (Auth::attempt($credentials)) {
              return redirect()-&gt;intended('home');
          }
      }
  </code></pre>
  
  <p>But Laravel ignores this method <code>authenticate().</code></p>
  
  <p>if to remove <code>use AuthenticatesUsers;</code> it becomes alive, but then does not work logout, login page.</p>