Commit a7959ebc authored by Taylor Otwell's avatar Taylor Otwell

Updating docs.

parent e7ee6865
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment