title: Laravel Passport Route redirects to login page
body: <p>I'm using Laravel 5.3 &amp; Passport.</p>
  
  <p>When using Postman to test any route I have set in api.php file it always returns the login page. Here is an example of my testing route:</p>
  
  <pre><code>Route::get('/getKey', function() {
      return 'hello';
  })-&gt;middleware('client_credentials');
  </code></pre>
  
  <p>Postman params:</p>
  
  <pre><code>Accept application/json
  Authorization Bearer &lt;then my key&gt;
  </code></pre>
  
  <p>I have set middleware to 'auth:api' per another solution I found while searching for the answer.</p>
  
  <pre><code>protected function mapApiRoutes()
      {
          Route::prefix('api')
               -&gt;middleware('auth:api')
               -&gt;namespace($this-&gt;namespace)
               -&gt;group(base_path('routes/api.php'));
      }
  </code></pre>
  
  <p>I've tried just about every solution that has worked for others but still no luck. Any suggestions would be much appreciated.</p>
  
  <p>UPDATE
  So I finally got something to work. I created a consumer app and created a few test functions. I was able to consume the api, with verification of token. However, hitting this Route no longer returns my login page, but instead now returns nothing. So its still not working for whatever reason.</p>
  
  <pre><code>Route::get('/user', function (Request $request) {
  
      return $request-&gt;user();
  })-&gt;middleware('client_credentials');
  </code></pre>