title: Laravel API auth
body: <p>Fixed to use session for api like web.
  But it keeps saying non-login. Why is that?</p>
  
  <p>Laravel version 7.0</p>
  
  <pre><code>'guards' =&gt; [
      'web' =&gt; [
          'driver' =&gt; 'session',
          'provider' =&gt; 'users',
      ],
  
      'api' =&gt; [
          'driver' =&gt; 'session',
          'provider' =&gt; 'users',
      ],
  ],
  </code></pre>