bundles.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Bundle Configuration
  5. |--------------------------------------------------------------------------
  6. |
  7. | Bundles allow you to conveniently extend and organize your application.
  8. | Think of bundles as self-contained applications. They can have routes,
  9. | controllers, models, views, configuration, etc. You can even create
  10. | your own bundles to share with the Laravel community.
  11. |
  12. | This is a list of the bundles installed for your application and tells
  13. | Laravel the location of the bundle's root directory, as well as the
  14. | root URI the bundle responds to.
  15. |
  16. | For example, if you have an "admin" bundle located in "bundles/admin"
  17. | that you want to handle requests with URIs that begin with "admin",
  18. | simply add it to the array like this:
  19. |
  20. | 'admin' => array(
  21. | 'location' => 'admin',
  22. | 'handles' => 'admin',
  23. | ),
  24. |
  25. | Note that the "location" is relative to the "bundles" directory.
  26. | Now the bundle will be recognized by Laravel and will be able
  27. | to respond to requests beginning with "admin"!
  28. |
  29. | Have a bundle that lives in the root of the bundle directory
  30. | and doesn't respond to any requests? Just add the bundle
  31. | name to the array and we'll take care of the rest.
  32. |
  33. */
  34. return array(
  35. // route the official docs
  36. 'docs' => array(
  37. 'handles' => 'docs'
  38. ),
  39. );