title: Laravel - accessing .env variables
body: <p>I tried to get the environment variable from the .env in my root with</p>
  
  <pre><code>Route::get('/test', function () {
      return "value is". getenv('APP_ENV');
  });
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Route::get('/test', function () {
      return "it is". env('APP_ENV');
  });
  </code></pre>
  
  <p>It is in .env</p>
  
  <pre><code>APP_NAME=Laravel
  APP_ENV=local
  </code></pre>
  
  <p>How can I get access to it?</p>