title: how to access Auth('api')->user() in API resource controller using passport
body: <p>My Controller</p>
  <pre><code>&lt;?php
      
      namespace App\Http\Controllers\Api;
      
      use App\User;
      use Illuminate\Http\Request;
      use App\Http\Controllers\Controller;
      use App\Http\Resources\BlogCollection;
      
      class BlogLikeController extends Controller
      {
      
          /**
           * Display a listing of the resource.
           *
           * @return \Illuminate\Http\Response
           */
          public function index()
          {
             $user = auth('api')-&gt;user();
             
             return new BlogCollection($user);
          }
      }
  </code></pre>
  <p>Routes</p>
  <pre><code>Route::middleware('auth:api')-&gt;group(function () {
      Route::apiResource('bloglike','Api\BlogLikeController');
  });
  </code></pre>
  <p>Result</p>
  <p>The result shows incorrect value</p>
  <p>I am using vue.js to return values to be saved through my recipient resource and I would like to save it along with my user_id using <code>Auth::user()-&gt;id;</code> Unfortunately I always get 0 in my user_id because I cannot access Auth('api')-&gt;user()-&gt;id in my API resource controller</p>