From 20a92ee123021d5fb2f0921d3c626454911debe8 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 14 Jul 2011 10:05:35 -0700 Subject: [PATCH] Edited readme.md via GitHub --- readme.md | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/readme.md b/readme.md index f1d99dce..c67cf13e 100644 --- a/readme.md +++ b/readme.md @@ -142,19 +142,15 @@ ### 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: ```php - function() +{ + // Handles GET requests to http://example.com/index.php/home +}, -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 - } +'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: