title: How to use auth in api routes
body: <p>I'm trying to call <code>Auth::user()</code> in my <code>routes/api.php</code> file.</p>
  
  <p>But the <code>Auth::user()</code> returns <code>null</code>.</p>
  
  <p>Meanwhile, as in the <code>routes/web.php</code> file it work.</p>
  
  <p>How to fix it?</p>
  
  <p>I will be grateful...</p>