title: How to get only logged in user_id instead passing JWT AUTH Token everytime on APIs call
body: <p>I am developing APIs and I'm using JWT Auth Token when i logged in JWT gives me token and each time i passed this token on URL PRM on <em>Postman</em> so that i can add required data with logged in user id. </p>
  
  <p>But i dont want to pass this token everytime this should pick user_id automatically when saving data and i dont need to pass token everytime when saving data into database against user_id. </p>
  
  <p>This is my one of api call: </p>
  
  <pre><code>    public function addPage(Request $request)
       {
      $fieldsValidation = [
  
          'page_url'  =&gt;  'required|unique:page_master,page_url',
          'page_name' =&gt; 'required',
      ];
      $validator = Validator::make($request-&gt;all(), $fieldsValidation);
  
      if ($validator-&gt;fails()) {
          $resultArray = [
              'status' =&gt; 0,
              'message' =&gt; $validator-&gt;errors()-&gt;first(),
              'dataArray' =&gt; []
          ];
      } else {
  
          $page = new Page($request-&gt;all());
  
          $user = User::find($request-&gt;user_id);
          $user-&gt;pageUrl()-&gt;save($page);
  
          $resultArray = ['status' =&gt; 1, 'message' =&gt; 'Page url added!', 'dataArray' =&gt; $page];
      }
      return Response::json($resultArray, 200);
  }
  </code></pre>
  
  <p>if i dont pass the token it sayas call to member function pageurl() on null. its hurting me and i am using laravel 5.5. with JWT Auth package.
  ANy help would be appreciated:</p>