autoload.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. define('LARAVEL_START', microtime(true));
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Register The Composer Auto Loader
  6. |--------------------------------------------------------------------------
  7. |
  8. | Composer provides a convenient, automatically generated class loader
  9. | for our application. We just need to utilize it! We'll require it
  10. | into the script here so that we do not have to worry about the
  11. | loading of any our classes "manually". Feels great to relax.
  12. |
  13. */
  14. require __DIR__.'/../vendor/autoload.php';
  15. /*
  16. |--------------------------------------------------------------------------
  17. | Include The Compiled Class File
  18. |--------------------------------------------------------------------------
  19. |
  20. | To dramatically increase your application's performance, you may use a
  21. | compiled class file which contains all of the classes commonly used
  22. | by a request. The Artisan "optimize" is used to create this file.
  23. |
  24. */
  25. $compiledPath = __DIR__.'/cache/compiled.php';
  26. if (file_exists($compiledPath)) {
  27. require $compiledPath;
  28. }