index.php 1.7 KB

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