title: Laravel Passport throwing MethodNotAllowedHttpException exception when I try to access my routes via Insomnia REST API
body: <p>This has happened way too often. I've cleared my local database by running <code>php artisan migrate:fresh</code> and after that, <code>php artisan passport:install --force</code>. For some obscure reason, I'm having this infernal error</p>
  
  <blockquote>
    <p>MethodNotAllowedHttpException</p>
  </blockquote>
  
  <p>when I try to access my <code>auth:api</code> routes only, since <strong>registration and login work</strong>.</p>
  
  <p>These are my routes:</p>
  
  <pre><code>Route::middleware('auth:api')-&gt;group(function () {
      Route::get('me', 'Api\UserController@details');
      Route::get('profile/{username}', 'Api\UserController@getUsername');
      Route::post('profile/{username}/trust', 'Api\TrustController@trust');
  });
  
  Route::post('register', 'Api\UserController@register')-&gt;name('register');
  Route::post('login', 'Api\UserController@login')-&gt;name('login');
  </code></pre>
  
  <p>I am absolutely sure I am sending a <code>GET</code> request.</p>
  
  <p><a href="https://i.stack.imgur.com/Sd82y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sd82y.png" alt="enter image description here"></a></p>
  
  <p>I know that this happens when I am not properly logged in, in other words, giving a correct token to the API, which is not the case now because I have logged in normally, and pasted the token in the header as usual.</p>
  
  <p>What else? Before I refreshed my database it was working. After the refresh, this has started. Any ideas?</p>