title: Not Found - 404 When trying to test passport oauth
body: <p>I've created a new laravel 5.3 project and set it up from this tutorial : <code>https://mattstauffer.co/blog/introducing-laravel-passport</code></p>
  
  <p>but when I try to check the oauth server by sending restful request from http request add-on in firefox I get Not Found - 404</p>
  
  <p>my request url : <code>http://localhost/pcheck/user</code> And I have set header : <code>"Application/json"</code></p>
  
  <p>My web.php Route file :</p>
  
  <pre><code>// First route that user visits on consumer app Route::get('/redirect', function () { // Build the query parameter string to pass auth information to our request $query = http_build_query([ 'client_id' =&gt; 3, 'redirect_uri' =&gt; 'http://localhost/pcheck/callback', 'response_type' =&gt; 'code', 'scope' =&gt; 'conference' ]);
  
  // Redirect the user to the OAuth authorization page
  return redirect('http://localhost/pcheck/oauth/authorize?' . $query);
  
  });
  
  // Route that user is forwarded back to after approving on server Route::get('/callback', function (Request $request) { $http = new GuzzleHttp\Client;
  
  $response = $http-&gt;post('http://localhost/pcheck/oauth/token', [
      'form_params' =&gt; [
          'grant_type' =&gt; 'authorization_code',
          'client_id' =&gt; '3',
          'client_secret' =&gt; 'azWM7CGS4UtIQ30sd5bwW5s53P52QjaRmUdWjKpx',
          'redirect_uri' =&gt; 'http://localhost/pcheck/callback',
          'code' =&gt; $request-&gt;code,
      ],
  ]);
  
  return json_decode((string) $response-&gt;getBody(), true);
  
  });
  </code></pre>
  
  <p>My api.php Route file :</p>
  
  <p><code>Route::get('/user', function (Request $request) { return $request-&gt;user(); })-&gt;middleware('auth:api');</code></p>
  
  <p>I don't know where I'm wrong any idea ?</p>