title: Laravel OAuth2 Passport API, generates Token but then unable to make requests : "unauthenticated"
body: <p>I have installed OAuth2 Passport to my Laravel project.
  I am using postman to test, I can create new user, I can login (token is generated) and logout.
  Once I have logged in I try to make request to an API endpoint but here I get stuck as no matter what I get 401 Unauthorized response in postman <code> &quot;message&quot;: &quot;Unauthenticated.&quot;</code></p>
  <p>When I make GET request to endpoint I include following headers:</p>
  <p>Content-Type: application/json</p>
  <p>X-Requested-With: XMLHttpRequest</p>
  <p>Authorization: Bearer TOKENHERE</p>
  <p>This is my routes file api.php</p>
  <pre><code>Route::middleware('auth:api')-&gt;get('/user', function (Request $request) {
  return $request-&gt;user();
  });
  
  Route::get('trip/{id}', 'TripController@getUserTrips');
  Route::get('trainroute/{id}', 'TripController@getTrainRouteInfo');
  Route::get('routestops/{id}', 'TripController@getRouteStops');
  Route::post('trip', 'TripController@addTrip');
  Route::get('trip', 'TripController@errorTrip') -&gt; name('test');
             
  
  Route::group([
      'prefix' =&gt; 'auth'
  ], function () {
      Route::post('login', 'AuthController@login');
      Route::post('signup', 'AuthController@signup');
    
      Route::group([
        'middleware' =&gt; 'auth:api'
      ], function() {
          Route::get('logout', 'AuthController@logout');
          Route::get('user', 'AuthController@user');
      });
  });
  </code></pre>
  <p>In my TripController, where are the endpoints I wish to access, I've included</p>
  <pre><code>public function __construct()
      {
              $this-&gt;middleware('auth');
      }
  </code></pre>
  <p>I have searched for answers and tried several things, such as editing .htaccess file and made sure to include Authorization header to GET request.</p>