index.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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
  14. | for our application. We just need to utilize it! We'll require it
  15. | into the script here so that we do not have to worry about the
  16. | loading of any our classes "manually". Feels great 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's turn on the lights.
  26. | This bootstrap 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 these users.
  29. |
  30. */
  31. $app = require_once __DIR__.'/../bootstrap/start.php';
  32. /*
  33. |--------------------------------------------------------------------------
  34. | Run The Application
  35. |--------------------------------------------------------------------------
  36. |
  37. | Once we have the application, we can simply call the run method,
  38. | which will execute the request and send the response back to
  39. | the client's browser allowing them to enjoy the creative
  40. | and wonderful applications we have created for them.
  41. |
  42. */
  43. $app->run();
  44. /*
  45. |--------------------------------------------------------------------------
  46. | Shutdown The Application
  47. |--------------------------------------------------------------------------
  48. |
  49. | Once the app has finished running. We will fire off the shutdown events
  50. | so that any final work may be done by the application before we shut
  51. | down the process. This is the last thing to happen to the request.
  52. |
  53. */
  54. $app->shutdown();