Created
May 28, 2020 15:28
-
-
Save ahmeti/9d1ac49d1f9159acdb2274f2768d9b05 to your computer and use it in GitHub Desktop.
Laravel Index & Register Shutdown Function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function shutdown(){ | |
$includedFiles = print_r(get_included_files(), true); | |
\Log::info($includedFiles); | |
} | |
register_shutdown_function('shutdown'); | |
/** | |
* Laravel - A PHP Framework For Web Artisans | |
* | |
* @package Laravel | |
* @author Taylor Otwell <taylor@laravel.com> | |
*/ | |
define('LARAVEL_START', microtime(true)); | |
/* | |
|-------------------------------------------------------------------------- | |
| Register The Auto Loader | |
|-------------------------------------------------------------------------- | |
| | |
| Composer provides a convenient, automatically generated class loader for | |
| our application. We just need to utilize it! We'll simply require it | |
| into the script here so that we don't have to worry about manual | |
| loading any of our classes later on. It feels great to relax. | |
| | |
*/ | |
require __DIR__.'/../vendor/autoload.php'; | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment