title: Laravel application bootstrap setting options
body: <p>I am developing a Laravel app using a third party library for various helper function.</p>
  
  <p>The way this library acts depends on the environment (dev, test, prod).</p>
  
  <p>I want to set the library's debug setting based on the value of the Laravel <code>.env</code> setting, and I assumed that the best place to set this would be in the <code>bootstrap/app.php</code> file. So I was trying something like this right before <code>$app</code> is returned:</p>
  
  <pre><code>MyCustomLibrary::set_debug(config('app.debug'));
  return $app;
  </code></pre>
  
  <p>This throws the error <code>ReflectionException: Class config does not exist</code>. </p>
  
  <p>Where would I set this if not in the <code>bootstrap/app.php</code>? Is there a different syntax I'd use?</p>