How I can use Laravel Passport Auth without Vue Component
<p>I have installed Passport Auth in Laravel 5.3 using this documentation <a href="https://laravel.com/docs/master/passport" rel="nofollow">https://laravel.com/docs/master/passport</a></p>

<p>but I have followed the steps before "Frontend Quickstart" heading now I have a API route:</p>

<pre><code>Route::get('/user', function (Request $request) {
    //return $request-&gt;user();
    return json_encode(array(
      1 =&gt; "John",
      2 =&gt; "Mary",
      3 =&gt; "Steven"
    ));
})-&gt;middleware('auth:api');
</code></pre>

<p>and I am trying to hit api url via postman <code>http://localhost/project/public/api/user</code></p>

<p>with Headers: <code>Accept: application/json</code></p>

<p>It shows me this output:</p>

<pre><code>{"error":"Unauthenticated."}
</code></pre>

<p><em>Please tell me how I can authenticate my API with passport auth? Also how I can generate access_token for authorization?</em></p>