title: Easiest way to password protect my Laravel app online for development purposes
body: <p>I am wanting to password protect my laravel application, ideally just on the deployment server (I'm using Fortrabbit), however, I don't mind logging in to my local development server.</p>
  
  <p>I initially thought a route filter would suffice, but this doesn't seem to work:</p>
  
  <pre><code>Route::get('/', array('before' =&gt; 'auth.basic', function()
  {
      // Only authenticated users may enter...
  }));
  </code></pre>
  
  <p>At the top of my route file, this is completely ineffective, however, at the bottom of my route file, it does seem to work, but if I physically type a sub-directory in, i.e. localhost:8888/user/ it seems to override it.</p>
  
  <p>Any guidance as to how you show your applications to clients (without Google, anyone else finding them), would be hugely appreciated.</p>