title: Laravel 5.4: POST API routes give MethodNotAllowedHttpException
body: <p>It's so strange that the POST API routes doesn't work!
  Check this simple POST route in <code>api.php</code>:</p>
  
  <pre><code>// This route doesn't work!
  Route::post('/test', function (Request $request) {
          return 'test';
  });
  </code></pre>
  
  <p>It gives me this error: <code>Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException</code>!</p>
  
  <p>But if I change the request verb to GET, then both GET and POST work just fine!!! It's making me crazy!</p>
  
  <pre><code>// This route works on both, GET and POST!
  Route::get('/test', function (Request $request) {
          return 'test';
  });
  </code></pre>
  
  <p>And yes, as you know the API routes simply don't use the <code>VerifyCsrfToken</code> middleware. So the middleware is not the issue obviously! And <code>php artisan cache:clear</code> is not also the answer :(</p>
  
  <p>Did anybody had the same problem? Any help would be so appreciated.</p>