Commit 0dd1af66 authored by Tao Wu's avatar Tao Wu

changes binding data variable to an array

parent a497a3ef
...@@ -56,8 +56,7 @@ Sometimes you will need a little more control over the response sent to the brow ...@@ -56,8 +56,7 @@ Sometimes you will need a little more control over the response sent to the brow
#### Returning a custom response containing a view, with binding data: #### Returning a custom response containing a view, with binding data:
$data = array('foo' => 'bar'); return Response::view('home', array('foo' => 'bar'));
return Response::view('home', $data);
#### Returning a JSON response: #### Returning a JSON response:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment