Skip to content

Commit

Permalink
Updating docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 21, 2012
1 parent e7ee686 commit a7959eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions laravel/documentation/views/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ Sometimes you will need a little more control over the response sent to the brow

return Response::view('home', 200, $headers);

#### Returning a JSON response:

return Response::json(array('name' => 'Batman'));

#### Returning Eloquent models as JSON:

return Response::eloquent(User::find(1));

<a name="binding-data-to-views"></a>
## Binding Data To Views

Expand Down

0 comments on commit a7959eb

Please sign in to comment.