title: laravel sanctum Route [login] not defined
body: <p>I am trying to get the current user in my laravel vue application. And whenever I trie to get it i am getting this error:</p>
  <p><code>Symfony\Component\Routing\Exception\RouteNotFoundException: Route [login] not defined. in file C:\Users\Moeme\Documents\School\HsLeiden\Keuzevakken\IKFRAM\sla ticketsystem\ticketsystem\vendor\laravel\framework\src\Illuminate\Routing\UrlGenerator.php on line 444</code></p>
  <p>This is what I am sending in postman:</p>
  <p><a href="https://i.stack.imgur.com/dIPuv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dIPuv.png" alt="this is what I send in postman" /></a></p>
  <p>This is what I have in my <code>routes\api.php</code></p>
  <pre><code>Route::middleware('auth:sanctum')-&gt;get('/user', function (Request $request) { 
      return $request-&gt;user();
  });
  </code></pre>
  <p>I really do not know why it is not working</p>
  <p>Thanks for the help</p>