4 * Laravel - A PHP Framework For Web Artisans
7 * @author Taylor Otwell <taylor@laravel.com>
10 define('LARAVEL_START', microtime(true));
13 |--------------------------------------------------------------------------
15 |--------------------------------------------------------------------------
17 | We need to get things going before we start up the app.
18 | The init file loads everything in, in the correct order.
22 require __DIR__.'/../bootstrap/init.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';
39 |--------------------------------------------------------------------------
41 |--------------------------------------------------------------------------
43 | Once we have the application, we can handle the incoming request
44 | through the kernel, and send the associated response back to
45 | the client's browser allowing them to enjoy the creative
46 | and wonderful application we have prepared for them.
50 $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
52 $response = $kernel->handle(
53 $request = Illuminate\Http\Request::capture()
58 $kernel->terminate($request, $response);