title: Api "401 - Unauthenticated" error after update laravel version
body: <p>Laravel launchs a <a href="https://blog.laravel.com/security-release-laravel-61827-7220" rel="nofollow noreferrer">security release</a>. I'm using Laravel 6.18.12 and trying to update to 6.18.29, so when I updated my composer.json file with <code>&quot;laravel/framework&quot;: &quot;^6.18.29&quot;</code> I take this error:</p>
  <p><a href="https://i.stack.imgur.com/eKgIp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eKgIp.png" alt="enter image description here" /></a></p>
  <p>Reading about it in stackoverflow I see that people that installed the doctrine/inflector at 1.4 fixed their problems. So I did it: <code>composer install doctrine/inflector:1.4</code> and try update again the laravel with <code>composer update laravel/framework</code> but a new error happened:</p>
  <p><a href="https://i.stack.imgur.com/30o5a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/30o5a.png" alt="enter image description here" /></a></p>
  <p>Them I installed also the symfony/polyfill-php7.3 (I'm using PHP 7.3). Done that I could update the Laravel version, but I'm always getting this error  401 once I try to get my api data:</p>
  <p><a href="https://i.stack.imgur.com/n3zps.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n3zps.png" alt="enter image description here" /></a></p>
  <p>This happens to all my api requests. Looks like something about the auth:api middleware, but I'm not sure why. My user is logged in the web, I can use auth() stuff, but the api looks like the user isn't authenticated. Everything was working as fine before this update.</p>
  <p>Ps: I'm not using passport, but I'm using spark alongside my project.</p>