refactoring.

This commit is contained in:
Taylor Otwell
2011-09-06 23:29:19 -05:00
parent 16716097c6
commit ed9e04db6f
9 changed files with 174 additions and 24 deletions

View File

@@ -42,13 +42,13 @@ return array(
|
*/
'before' => function($laravel)
'before' => function()
{
// Do stuff before every request to your application.
},
'after' => function($laravel, $response)
'after' => function($response)
{
// Do stuff after every request to your application.
},

View File

@@ -16,28 +16,28 @@ return array(
|
| Here is how to respond to a simple GET request to http://example.com/hello:
|
| 'GET /hello' => function($laravel)
| 'GET /hello' => function()
| {
| return 'Hello World!';
| }
|
| You can even respond to more than one URI:
|
| 'GET /hello, GET /world' => function($laravel)
| 'GET /hello, GET /world' => function()
| {
| return 'Hello World!';
| }
|
| It's easy to allow URI wildcards using the (:num) or (:any) place-holders:
|
| 'GET /hello/(:any)' => function($laravel, $name)
| 'GET /hello/(:any)' => function($name)
| {
| return "Welcome, $name.";
| }
|
*/
'GET /' => function($laravel)
'GET /' => function()
{
return View::make('home.index');
},