title: Lumen: NotFoundHttpException in RoutesRequests.php line 229, Dispatcher NOT_FOUND
body: <p>I tried a vue-lumen-tutorial with laravel-passport. All works fine for me except the LoginController (login by user and password).
  I think its not a problem of the tutorial code, its more a server or laravel/lumen configuration problem. But i am not sure.
  The code runs remote on a linux machine (18.04), apache server with Lumen (5.8.12) (Laravel Components 5.8.*) and with Passport.
  The api endpoints are available but the /login endpoint gives a 404 Not found.</p>
  
  <p>I found here some questions/answers concerning the index.php of lumen or .htaccess file.  <a href="https://stackoverflow.com/questions/36436967/just-installed-lumen-and-got-notfoundhttpexception">Just installed Lumen and got NotFoundHttpException</a> . But it doesn't help me. </p>
  
  <p>I am testing with Postman:</p>
  
  <pre><code>GET  to https://domain/api/companies/     works fine, 
  POST to https://domain/api/oauth/token    works fine, but
  POST to https://domain/api/login          gives a 404 Not found.
  
  The route /login is ok.
  ...
  return app()-&gt;version(); only for testing gives a request but i need the $tokenRequest:
  ...
  return app()-&gt;dispatch($tokenRequest); =&gt; 404 Not found
  ...
  error message:
  (1/1) NotFoundHttpException
  in RoutesRequests.php line 229
  ...
  protected function handleDispatcherResponse($routeInfo)
  {
  switch ($routeInfo[0]) {
  case Dispatcher::NOT_FOUND:
  throw new NotFoundHttpException;   &lt;== 229
  case Dispatcher::METHOD_NOT_ALLOWED:
  throw new MethodNotAllowedHttpException($routeInfo[1]);
  case Dispatcher::FOUND:
  return $this-&gt;handleFoundRoute($routeInfo);
  }
  }
  ...
  Maybe a proxy issue between /oauth/token and /login? What can i do?
  </code></pre>
  
  <p>LoginController here in row 45: <a href="https://github.com/aibim/vue-lumen-tutorial/blob/master/app/Http/Controllers/LoginController.php" rel="nofollow noreferrer">https://github.com/aibim/vue-lumen-tutorial/blob/master/app/Http/Controllers/LoginController.php</a></p>