title: error status 401 error unauthenticated laravel passport
body: <p>This is my first time implementing laravel passport</p>
  
  <p>This is my <code>config/auth.php</code></p>
  
  <pre><code>'guards' =&gt; [
      'web' =&gt; [
          'driver' =&gt; 'session',
          'provider' =&gt; 'users',
      ],
  
      'api' =&gt; [
          'driver' =&gt; 'passport',
          'provider' =&gt; 'users',
      ],
  ],
  </code></pre>
  
  <p>and this is where my <code>routes/api.php</code> that are guarded by <code>auth:api</code></p>
  
  <pre><code>Route::group(['middleware' =&gt; ['auth:api']], function () {
      Route::resource('users','Users\AdminUsersController')-&gt;except([
      'create', 'edit'
      ]);
  });
  </code></pre>
  
  <p>and this is how I fetch the api</p>
  
  <pre><code>fetchUsers: async function(page_url){
       await axios.get('api/users')
       .then( response =&gt; {
            vm.users = response.data.data;
        })
       .catch( error =&gt; {
            console.log(error);
        });
   },
  </code></pre>
  
  <p>Im getting status 401 error unauthenticated. How can I fix this? TIA</p>