Edited readme.md via GitHub
This commit is contained in:
parent
a911d54166
commit
48849f63d5
|
@ -141,9 +141,10 @@ ### 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
|
||||
```php
|
||||
<?php
|
||||
|
||||
return array(
|
||||
return array(
|
||||
|
||||
'GET /home' => function()
|
||||
{
|
||||
|
@ -154,6 +155,7 @@ ### The Basics
|
|||
{
|
||||
// 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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue