autoload.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Register The Composer Auto Loader
  5. |--------------------------------------------------------------------------
  6. |
  7. | Composer provides a convenient, automatically generated class loader
  8. | for our application. We just need to utilize it! We'll require it
  9. | into the script here so that we do not have to worry about the
  10. | loading of any our classes "manually". Feels great to relax.
  11. |
  12. */
  13. require __DIR__.'/../vendor/autoload.php';
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Register The Laravel Auto Loader
  17. |--------------------------------------------------------------------------
  18. |
  19. | We register an auto-loader "behind" the Composer loader that can load
  20. | model classes on the fly, even if the autoload files have not been
  21. | regenerated for the application. We'll add it to the stack here.
  22. |
  23. */
  24. Illuminate\Support\ClassLoader::register();
  25. /*
  26. |--------------------------------------------------------------------------
  27. | Register The Workbench Loaders
  28. |--------------------------------------------------------------------------
  29. |
  30. | The Laravel workbench provides a convenient place to develop packages
  31. | when working locally. However we will need to load in the Composer
  32. | auto-load files for the packages so that these can be used here.
  33. |
  34. */
  35. if (is_dir($workbench = __DIR__.'/../workbench'))
  36. {
  37. Illuminate\Workbench\Starter::start($workbench);
  38. }