title: Laravel 5 environment detection
body: <p>I'm trying to get environment detection to work, so that I can use the .env.local.php file and all the other goodies, but somehow I cannot get it to detect the right environment.</p>
  
  <p>I have added bootstrap/environment.php</p>
  
  <pre><code>&lt;?php
  
  $env = $app-&gt;detectEnvironment(array(
  
      'local' =&gt; array('mylocalmachinename') 
  
  )); 
  </code></pre>
  
  <p>But when I php artisan env, I always get production instead of local. </p>
  
  <p>Anyone know what the problem is?</p>