title: Laravel - Send custom parameter to scheduled tasks (commands)
body: <p>Currently I have 4 different commands in "app/Console/Commands/", and I set them all up in app/Kernel.php, like this:</p>
  
  <pre><code>$schedule-&gt;command('command:start-imports-group-a')-&gt;everyFiveMinutes()-&gt;runInBackground()-&gt;withoutOverlapping();
  $schedule-&gt;command('command:start-imports-group-b')-&gt;everyFiveMinutes()-&gt;runInBackground()-&gt;withoutOverlapping();    
  $schedule-&gt;command('command:start-imports-group-c')-&gt;everyFiveMinutes()-&gt;runInBackground()-&gt;withoutOverlapping();    
  $schedule-&gt;command('command:start-imports-group-d')-&gt;everyFiveMinutes()-&gt;runInBackground()-&gt;withoutOverlapping();
  </code></pre>
  
  <p>In my command php files (e.g. StartImportsGroupA.php, StartImportsGroupB.php, etc.) they are all calling the same function, but I'm simply setting a variable in each to change the "group" value. For example:</p>
  
  <p>StartImportsGroupA.php</p>
  
  <pre><code>public function handle()
  {
       $group = 'a';
       $this-&gt;startImports($group);
  }
  </code></pre>
  
  <p>StartImportsGroupB.php</p>
  
  <pre><code>public function handle()
  {
       $group = 'b';
       $this-&gt;startImports($group);
  }
  </code></pre>
  
  <p>...and so on.</p>
  
  <p><strong>Is there an better way to do this?</strong> E.g. pass the "group" parameter to the command? That way I won't need 4 different command files to simply change that one $group variable's value.</p>