Skip to content

Commit 0dd1af6

Browse files
committed
changes binding data variable to an array
1 parent a497a3e commit 0dd1af6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

laravel/documentation/views/home.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ Sometimes you will need a little more control over the response sent to the brow
5656

5757
#### Returning a custom response containing a view, with binding data:
5858

59-
$data = array('foo' => 'bar');
60-
return Response::view('home', $data);
59+
return Response::view('home', array('foo' => 'bar'));
6160

6261
#### Returning a JSON response:
6362

0 commit comments

Comments
 (0)