routes.php 900 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Application Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Simply tell Laravel the HTTP verbs and URIs it should respond to. It's a
  9. | piece of cake to create beautiful applications using the elegant RESTful
  10. | routing available in Laravel.
  11. |
  12. | Let's respond to a simple GET request to http://example.com/hello:
  13. |
  14. | 'GET /hello' => function()
  15. | {
  16. | return 'Hello World!';
  17. | }
  18. |
  19. | You can even respond to more than one URI:
  20. |
  21. | 'GET /hello, GET /world' => function()
  22. | {
  23. | return 'Hello World!';
  24. | }
  25. |
  26. | It's easy to allow URI wildcards using (:num) or (:any):
  27. |
  28. | 'GET /hello/(:any)' => function($name)
  29. | {
  30. | return "Welcome, $name.";
  31. | }
  32. |
  33. */
  34. 'GET /' => function()
  35. {
  36. return View::make('home.index');
  37. },
  38. );