No Description

index.php 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * Laravel - A PHP Framework For Web Artisans
  4. *
  5. * @package Laravel
  6. * @author Taylor Otwell <taylor@laravel.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::class);
  44. $response = $kernel->handle(
  45. $request = Illuminate\Http\Request::capture()
  46. );
  47. $response->send();
  48. $kernel->terminate($request, $response);