title: How to get current user in Laravel API using Passport?
body: <p>I am using passport package for Laravel API Authentication. When I post data I get error:</p>
  
  <blockquote>
    <p>401 Unauthorized","error":{"error":"Unauthenticated."}.</p>
  </blockquote>
  
  <p>I use <code>Auth::user()-&gt;id;</code> to get current user id.</p>
  
  <p>How to solve this error?</p>