title: Get laravel environment when running schedule
body: <p>I set up some commands in Laravel 5 schedule. The output is stored in the file and emailed to me. </p>
  
  <p>Since there are several "copies" of the project I wanna use the environment name to be able to tell which copy the email came from.</p>
  
  <p>I tried using <code>app()-&gt;environment()</code> in schedule description - it throws an error: </p>
  
  <pre><code>Fatal error: Uncaught exception 'ReflectionException' with message 'Class env does not exist' in ...
  </code></pre>
  
  <p>I also tried <code>getenv('APP_ENV')</code> - this does not cause any error, but I get a blank environment name.</p>
  
  <p><code>App::environment()</code> didn't work either.</p>
  
  <p>All of these work just fine if I use them in regular requests (for example controller actions or views).</p>
  
  <p>Is there a way to determine current environment when running schedules?</p>
  
  <p>Thank you</p>