diff --git a/laravel/documentation/views/home.md b/laravel/documentation/views/home.md index be646393..27383562 100644 --- a/laravel/documentation/views/home.md +++ b/laravel/documentation/views/home.md @@ -54,9 +54,9 @@ Sometimes you will need a little more control over the response sent to the brow return Response::make('Hello World!', 200, $headers); }); -#### Returning a custom response containing a view: +#### Returning a custom response containing a view, with binding data: - return Response::view('home', 200, $headers); + return Response::view('home', array('foo' => 'bar')); #### Returning a JSON response: @@ -257,4 +257,4 @@ To generating proper error responses simply specify the response code that you w #### Generating a 500 error response: - return Response::error('500'); \ No newline at end of file + return Response::error('500');