Getting the Application Bootstrap File


You want to know the application bootstrap file.


Use the App::getBootstrapFile().

This returns the full path to the bootstrap file.

echo App::getBootstrapFile();

Will output something like.



This is a low-level method.

You can see where this file is loaded in Understanding the Request Lifecycle. In The Booting Steps, it's the block right after "Starts Application" labeled "laravel/start.php".

comments powered by Disqus