title: Laravel 5 New Env variable and use in layout file
body: <p>So I am trying to add a new environment variable and use it in the layout file so I can hide part of menu if registration is disbled</p>
  
  <p>.env</p>
  
  <pre><code>ALLOW_REGISTRATION=FALSE
  </code></pre>
  
  <p>layouts/apps/blade.php     </p>
  
  <pre><code>@if (env('ALLOW_REGISTRATION',TRUE))
        ...
  </code></pre>
  
  <p>Error I am getting</p>
  
  <pre><code>Trying to get property of non-object (View: /home/jj/Development/app/resources/views/layouts/app.blade.php) (View: /home/jj/Development/app/resources/views/layouts/app.blade.php)
  </code></pre>
  
  <p>Thoughts?</p>