Edited readme.md via GitHub
This commit is contained in:
@@ -141,6 +141,7 @@ Unlike other PHP frameworks, Laravel places routes and their corresponding funct
|
|||||||
|
|
||||||
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:
|
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(
|
||||||
@@ -154,6 +155,7 @@ All you need to do is tell Laravel the request methods and URIs it should respon
|
|||||||
{
|
{
|
||||||
// Handles PUT requests to http://example.com/index.php/user/update
|
// 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:
|
You can easily define a route to handle requests to more than one URI. Just use commas:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user