Skip to content

Instantly share code, notes, and snippets.

@ahmeti
Created May 28, 2020 15:28
Show Gist options
  • Save ahmeti/9d1ac49d1f9159acdb2274f2768d9b05 to your computer and use it in GitHub Desktop.
Save ahmeti/9d1ac49d1f9159acdb2274f2768d9b05 to your computer and use it in GitHub Desktop.
Laravel Index & Register Shutdown Function
<?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