changes binding data variable to an array
This commit is contained in:
parent
a497a3efcb
commit
0dd1af665f
|
@ -56,8 +56,7 @@ #### Returning a custom response:
|
||||||
|
|
||||||
#### 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:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue