From 0dd1af665fc7f7b96235abc3e8041e872f2a963e Mon Sep 17 00:00:00 2001 From: Tao Wu Date: Sun, 29 Jul 2012 12:44:58 +0200 Subject: [PATCH] changes binding data variable to an array --- laravel/documentation/views/home.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/laravel/documentation/views/home.md b/laravel/documentation/views/home.md index fa74b0c2..27383562 100644 --- a/laravel/documentation/views/home.md +++ b/laravel/documentation/views/home.md @@ -56,8 +56,7 @@ #### Returning a custom response: #### Returning a custom response containing a view, with binding data: - $data = array('foo' => 'bar'); - return Response::view('home', $data); + return Response::view('home', array('foo' => 'bar')); #### Returning a JSON response: