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