title: Howto find out if Laravel Command has been started via the scheduler?
body: <p>When the laravel scheduler starts a command like:</p>
  
  <p><code>$schedule-&gt;command('test:testcommand')-&gt;hourly();</code></p>
  
  <p>i need to find out, inside the command, if it has been started via</p>
  
  <p><code>artisan test:testcommand</code><br>
  or<br>
  <code>artisan schedule:run</code></p>
  
  <p>i looked into <code>$_SERVER['argv']</code> but i don´t see any info that helps me to
  identify this.<br>
  maybe laravel has some fancy internal functions, but i wasn´t able to find them.</p>