How to use Laravel Passport with a custom username column
<p>Now I'm using something like that for authenticating the user on my base site:</p>

<pre><code>if (Auth::attempt($request-&gt;only(['id', 'password']))) {
            //
}
</code></pre>

<p>How can I modify this code for using custom column as username?
<a href="https://laravel.com/docs/5.3/passport#password-grant-tokens" rel="noreferrer">https://laravel.com/docs/5.3/passport#password-grant-tokens</a></p>