title: Retrieve UserID in Cron Job Laravel 5.7
body: <p>I want to create an automated invoice data that occurs on the first day of every month. To do so, I need to pass the user data into the <b>invoice</b> table, but I cannot retrieve the user ID in <b>Cron Job Laravel 5.7</b>.<br>
  Can someone assist me in retrieving the user id?</p>
  
  <pre><code>use Auth;
  use App\User;
  use App\UserDetail;
  
  
      public function handle()
      {
          echo Auth::guard('users')-&gt;user()-&gt;id;
      }
  </code></pre>