4 * Laravel - A PHP Framework For Web Artisans.
8 define('LARAVEL_START', microtime(true));
11 |--------------------------------------------------------------------------
12 | Register The Auto Loader
13 |--------------------------------------------------------------------------
15 | Composer provides a convenient, automatically generated class loader for
16 | our application. We just need to utilize it! We'll simply require it
17 | into the script here so that we don't have to worry about manual
18 | loading any of our classes later on. It feels great to relax.
22 require __DIR__ . '/../vendor/autoload.php';
25 |--------------------------------------------------------------------------
27 |--------------------------------------------------------------------------
29 | We need to illuminate PHP development, so let us turn on the lights.
30 | This bootstraps the framework and gets it ready for use, then it
31 | will load up this application so that we can run it and send
32 | the responses back to the browser and delight our users.
36 $app = require_once __DIR__ . '/../bootstrap/app.php';
37 $app->alias('request', \BookStack\Http\Request::class);
40 |--------------------------------------------------------------------------
42 |--------------------------------------------------------------------------
44 | Once we have the application, we can handle the incoming request
45 | through the kernel, and send the associated response back to
46 | the client's browser allowing them to enjoy the creative
47 | and wonderful application we have prepared for them.
51 $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
53 $response = $kernel->handle(
54 $request = \BookStack\Http\Request::capture()
59 $kernel->terminate($request, $response);