Edited readme.md via GitHub

This commit is contained in:
Taylor Otwell 2011-07-14 10:06:27 -07:00
parent 20a92ee123
commit b80b3d36d4
1 changed files with 8 additions and 10 deletions

View File

@ -141,17 +141,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
'GET /home' => function()
{
'GET /home' => function()
{
// Handles GET requests to http://example.com/index.php/home
},
},
'PUT /user/update' => function()
{
'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: