title: Laravel: supported way to change framework/app folder location?
body: <p>I'm just starting to play around with Laravel and noticed in the docs it said they recommend you move your app files outside the document root, with just the content of <code>/public</code> being accessible.  Ok, fine, so I've done that.  However, looking in <code>/public/index.php</code> it is hard-coded to point up one directory to the <code>/bootstrap</code> directory.  Since I've moved the framework code elsewhere, I modified the file slightly to:</p>
  
  <pre><code>$app_path = $_SERVER['DOCUMENT_ROOT'].'/../securefiles/myApp/';
  ...
  require $app_path.'/bootstrap/autoload.php';
  ... etc ...
  </code></pre>
  
  <p>Is this the expected practice?  This file needs to be set up correctly before Laravel even loads, so I don't imagine I can configure Laravel itself to know where it's stored relative to <code>/public/index.php</code>.  I'm just curious though if there's another, better, more appropriate method?</p>