index.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. ini_set('serialize_precision', -1);
  3. /**
  4. * Laravel - A PHP Framework For Web Artisans
  5. *
  6. * @package Laravel
  7. * @author Taylor Otwell <taylor@laravel.com>
  8. */
  9. define('LARAVEL_START', microtime(true));
  10. /*
  11. |--------------------------------------------------------------------------
  12. | Register The Auto Loader
  13. |--------------------------------------------------------------------------
  14. |
  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.
  19. |
  20. */
  21. require __DIR__.'/vendor/autoload.php';
  22. /*
  23. |--------------------------------------------------------------------------
  24. | Turn On The Lights
  25. |--------------------------------------------------------------------------
  26. |
  27. | We need to illuminate PHP development, so let us turn on the lights.
  28. | This bootstraps the framework and gets it ready for use, then it
  29. | will load up this application so that we can run it and send
  30. | the responses back to the browser and delight our users.
  31. |
  32. */
  33. $app = require_once __DIR__.'/bootstrap/app.php';
  34. /*
  35. |--------------------------------------------------------------------------
  36. | Run The Application
  37. |--------------------------------------------------------------------------
  38. |
  39. | Once we have the application, we can handle the incoming request
  40. | through the kernel, and send the associated response back to
  41. | the client's browser allowing them to enjoy the creative
  42. | and wonderful application we have prepared for them.
  43. |
  44. */
  45. $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
  46. $response = $kernel->handle(
  47. $request = Illuminate\Http\Request::capture()
  48. );
  49. $response->send();
  50. $kernel->terminate($request, $response);