From a911d54166ec7ade8af421355f26c4c94aabb1c9 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 14 Jul 2011 10:04:12 -0700 Subject: [PATCH] Edited readme.md via GitHub --- readme.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/readme.md b/readme.md index a9bdef26..2f08d5ea 100644 --- a/readme.md +++ b/readme.md @@ -141,15 +141,19 @@ ### The Basics All you need to do is tell Laravel the request methods and URIs it should respond to. You define the behavior of the route using an anonymous method: - 'GET /home' => function() - { - // Handles GET requests to http://example.com/index.php/home - }, + function() - { - // Handles PUT requests to http://example.com/index.php/user/update - } + return array( + + 'GET /home' => function() + { + // Handles GET requests to http://example.com/index.php/home + }, + + 'PUT /user/update' => function() + { + // Handles PUT requests to http://example.com/index.php/user/update + } You can easily define a route to handle requests to more than one URI. Just use commas: