Browse Source

Edited readme.md via GitHub

Taylor Otwell 13 years ago
parent
commit
48849f63d5
1 changed files with 12 additions and 10 deletions
  1. 12 10
      readme.md

+ 12 - 10
readme.md

@@ -141,19 +141,21 @@ 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:
 
-	<?php
+```php
+<?php
 
-	return array(
+return array(
 
-		'GET /home' => 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: