title: foreach loop in Laravel Forge scheduler not working
body: <p>I have a Laravel app running on Laravel Forge with Digital Ocean and I need to send a daily email to some of my app´s users, but foreach loop inside $schedule closure does not recognize the $user instance.</p>
  
  <p>Here's the schedule function inside Kernel.php:</p>
  
  <pre><code>protected function schedule(Schedule $schedule)
  {
  
      $users = collect();
      $users-&gt;push(User::find(1));
      $users-&gt;push(User::find(544));
  
      $schedule-&gt;call(function () use ($users) {
          foreach ($users as $user) {
              Mail::to($user-&gt;email)-&gt;send(new BoltraNuevoUsuario($user, 'nuevoUsuario'));
          }
      })-&gt;dailyAt('8:00');
  }
  </code></pre>
  
  <p>I dd($users) inside the closure's foreach and the collection is correct, showing both prefetched users; but $user is null, no matter what I do. I've already tried setting php´s register_argc_argv value to On in both PHP FPM Configuration and PHP CLI Configuration files via Forge, but it didn´t help. I´ve also tried with the following Cron jobs sentences:</p>
  
  <p>Sentence 1:</p>
  
  <pre><code>    php /home/forge/www.boltra.com.mx/artisan schedule:run
  </code></pre>
  
  <pre><code>    Running scheduled command: Closure
      In Kernel.php line 43:
        Trying to get property 'email' of non-object  
  </code></pre>
  
  <p>Sentence 2:</p>
  
  <pre><code>    php /home/forge/www.boltra.com.mx/artisan schedule:run 1&gt;&gt; /dev/null 2&gt;&amp;1
  </code></pre>
  
  <pre><code>    Running scheduled command: Closure
      In Kernel.php line 43:
        Trying to get property 'email' of non-object  
  </code></pre>
  
  <p>Sentence 3:</p>
  
  <pre><code>    php-cli -q /home/forge/www.boltra.com.mx/artisan schedule:run &gt;&gt; /dev/null 2&gt;&amp;1
  </code></pre>
  
  <pre><code>    Command: php-cli -q /home/forge/www.boltra.com.mx/artisan schedule:run &gt;&gt; 
      /dev/null 2&gt;&amp;1
      /bin/sh: 1: php-cli: not found
  </code></pre>
  
  <p>Any help is greatly appreciated.</p>