title: Laravel Restricting access for development site
body: <p>We are migrating our site to laravel 5 from a custom frame created a while ago... We have a production site as well as a development site. Is there a easy solution for restricting access to the development site at all times unless they meet certain circumstances?</p>
  
  <p>I'm interest in one of the following methods:</p>
  
  <ul>
  <li>Unrestricting based on IP</li>
  <li>Unrestricting based on Login</li>
  </ul>
  
  <p>The solution I'm looking for is something I'd like to not have to change when uploading from development to production and would like it to follow the following logic if possible:</p>
  
  <pre><code>if(liveSite){
      Show everything, no restrictions
  }elseif(developmentSite){
      Hide everything, unrestrict based on logic
  }
  </code></pre>
  
  <p>We currently do this with separate .htaccess files but i'd prefer not to have to keep track of two separate files and overwriting possibities</p>