3 use BookStack\Http\Request;
4 use Illuminate\Contracts\Http\Kernel;
6 define('LARAVEL_START', microtime(true));
8 // Determine if the application is in maintenance mode...
9 if (file_exists(__DIR__ . '/../storage/framework/maintenance.php')) {
10 require __DIR__ . '/../storage/framework/maintenance.php';
13 // Register the Composer autoloader...
14 require __DIR__ . '/../vendor/autoload.php';
17 // Run the application
18 $app = require_once __DIR__ . '/../bootstrap/app.php';
19 $app->alias('request', Request::class);
21 $kernel = $app->make(Kernel::class);
23 $response = tap($kernel->handle(
24 $request = Request::capture()
27 $kernel->terminate($request, $response);