Add documentation for JSONP Response

This commit is contained in:
Jesse O'Brien
2012-12-06 11:22:48 -05:00
parent 1beea5d594
commit cf6e2a768b

View File

@@ -62,6 +62,10 @@ Sometimes you will need a little more control over the response sent to the brow
return Response::json(array('name' => 'Batman'));
#### Returning a JSONP response:
return Response::jsonp(array('name' => 'Batman'));
#### Returning Eloquent models as JSON:
return Response::eloquent(User::find(1));