How to check if user's status is active in laravel 5.x?
<p>I have set a bit different login logic in AuthController provided by laravel 5.2. The code is </p>

<pre><code> protected function authenticated(Request $request)
    {

        $email = $request-&gt;input('email');
        $password = $request-&gt;input('password');

        if (Auth::attempt(['email' =&gt; $email, 'password' =&gt; $password, 'is_active' =&gt; 1])) {
            return redirect()-&gt;intended('admin/dashboard');
        }

        return $this-&gt;sendFailedLoginResponse($request);
    }
</code></pre>

<p>The code works fine. But the problem when user is not active, it still get logged in as users. So how do i stop authenticating users with <code>is_active = 0</code>?</p>

<p><strong>UPDATE: User Migration</strong></p>

<pre><code>Schema::create('users', function (Blueprint $table) {
    $table-&gt;increments('id');
    $table-&gt;string('name');
    $table-&gt;string('email')-&gt;unique();
    $table-&gt;string('password', 60);
    $table-&gt;tinyInteger('is_active', 0);
    $table-&gt;rememberToken();
    $table-&gt;timestamps();
});
</code></pre>