You want to know the application bootstrap file.
This returns the full path to the bootstrap file.
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".