1 | <?php
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Laravel - A PHP Framework For Web Artisans
|
---|
5 | *
|
---|
6 | * @package Laravel
|
---|
7 | * @author Taylor Otwell <taylor@laravel.com>
|
---|
8 | */
|
---|
9 |
|
---|
10 | define('LARAVEL_START', microtime(true));
|
---|
11 |
|
---|
12 | /*
|
---|
13 | |--------------------------------------------------------------------------
|
---|
14 | | Register The Auto Loader
|
---|
15 | |--------------------------------------------------------------------------
|
---|
16 | |
|
---|
17 | | Composer provides a convenient, automatically generated class loader for
|
---|
18 | | our application. We just need to utilize it! We'll simply require it
|
---|
19 | | into the script here so that we don't have to worry about manual
|
---|
20 | | loading any of our classes later on. It feels great to relax.
|
---|
21 | |
|
---|
22 | */
|
---|
23 |
|
---|
24 | require __DIR__.'/../vendor/autoload.php';
|
---|
25 |
|
---|
26 | /*
|
---|
27 | |--------------------------------------------------------------------------
|
---|
28 | | Turn On The Lights
|
---|
29 | |--------------------------------------------------------------------------
|
---|
30 | |
|
---|
31 | | We need to illuminate PHP development, so let us turn on the lights.
|
---|
32 | | This bootstraps the framework and gets it ready for use, then it
|
---|
33 | | will load up this application so that we can run it and send
|
---|
34 | | the responses back to the browser and delight our users.
|
---|
35 | |
|
---|
36 | */
|
---|
37 |
|
---|
38 | $app = require_once __DIR__.'/../bootstrap/app.php';
|
---|
39 |
|
---|
40 | /*
|
---|
41 | |--------------------------------------------------------------------------
|
---|
42 | | Run The Application
|
---|
43 | |--------------------------------------------------------------------------
|
---|
44 | |
|
---|
45 | | Once we have the application, we can handle the incoming request
|
---|
46 | | through the kernel, and send the associated response back to
|
---|
47 | | the client's browser allowing them to enjoy the creative
|
---|
48 | | and wonderful application we have prepared for them.
|
---|
49 | |
|
---|
50 | */
|
---|
51 |
|
---|
52 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
|
---|
53 |
|
---|
54 | $response = $kernel->handle(
|
---|
55 | $request = Illuminate\Http\Request::capture()
|
---|
56 | );
|
---|
57 |
|
---|
58 | $response->send();
|
---|
59 |
|
---|
60 | $kernel->terminate($request, $response);
|
---|