Updating docs.

This commit is contained in:
Taylor Otwell 2012-05-21 10:57:23 -05:00
parent e7ee6865b1
commit a7959ebc3d
1 changed files with 8 additions and 0 deletions

View File

@ -58,6 +58,14 @@ #### Returning a custom response containing a view:
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