title: How to use ENV variables in Artisan Commands in Laravel 5.8?
body: <p>I am creating my own artisan command and I want to use ENV variables, but when I use <code>$_ENV['VariableName']</code> I get and error.</p>
  
  <p><code>local.ERROR: Undefined index: VariableName</code></p>
  
  <p>The same code works perfectly in a controller and error as this one is not being generated.</p>
  
  <p>I am creating my commands with <code>php artisan make:command CommandName</code></p>
  
  <p>How can I start using ENV variables there? Thank you! I want to use the variables in a private function which is inside:</p>
  
  <p><code>class CommandName extends Command</code> but outside the <code>public function handle()</code></p>