title: Laravel: Where to Add booted and booting Callbacks?
body: <p>The main Laravel application object has two methods, <code>booting</code> and <code>booted</code>.  These methods allow you to configure callbacks.  The application object will call these callbacks before and after it boots.</p>
  
  <p>Where, as a Laravel application developer, can I hook into these events?  Looking at the framework it seems like</p>
  
  <pre><code>bootstrap/start.php
  </code></pre>
  
  <p>is the obvious place — but if I put code here it'll be zapped in the next update.  There's also</p>
  
  <pre><code>start/global.php
  statt/{$env}.php
  </code></pre>
  
  <p>but these files are actually required in by a <code>booted</code> callback, which means the <code>booting</code> callback point would be unavailable.</p>
  
  <p>Is there an intended place for me to hook into these events as a Laravel application developer?  Or are <code>booting</code> and <code>booted</code> there for the core framework developers?  Or has I made an incorrect assumption that I'm not even aware of? Laravel 4.2.6, but if there's context from additional versions I'd love to hear about it. </p>
  
  <p>New to Laravel, not new to programming.  Not asking for a specific task (yet), just getting a feel for what best practices/intended use is and is not. </p>