Laravel Auth Custom Fields
<p>Trying to add a custom field to auth, to check if a user is 'activated' before allowing login</p>

<p>I've tried modifying <code>AuthenticatesUsers.php</code> although I now understand this file shouldnt be edited directly.</p>

<p>Here is what I tried and it did not work.</p>

<pre><code>    public function postLogin(Request $request)
{
    $this-&gt;validate($request, [
        $this-&gt;loginUsername() =&gt; 'required', 'password' =&gt; 'required', 'activated' =&gt; '1'
    ]);
</code></pre>