-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_boot.php
More file actions
20 lines (20 loc) · 798 Bytes
/
Copy pathdebug_boot.php
File metadata and controls
20 lines (20 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
// debug_boot.php
define('LARAVEL_START', microtime(true));
require_once __DIR__.'/app/Helpers/Overwrites.php';
require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
try {
echo "Handling request...\n";
$kernel->handle(Illuminate\Http\Request::capture());
echo "Done.\n";
} catch (\Throwable $e) {
echo "CAUGHT " . get_class($e) . ": " . $e->getMessage() . " in " . $e->getFile() . ":" . $e->getLine() . "\n";
if ($e->getPrevious()) {
$prev = $e->getPrevious();
echo "PREVIOUS " . get_class($prev) . ": " . $prev->getMessage() . " in " . $prev->getFile() . ":" . $prev->getLine() . "\n";
}
echo "\nStack Trace:\n";
echo $e->getTraceAsString();
}