Added callback wrapper for JSONP auto wrapping.

This commit is contained in:
Jesse O'Brien
2012-12-06 11:57:26 -05:00
parent cf6e2a768b
commit 404b59730a
2 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ Sometimes you will need a little more control over the response sent to the brow
#### Returning a JSONP response:
return Response::jsonp(array('name' => 'Batman'));
return Response::jsonp('myCallback', array('name' => 'Batman'));
#### Returning Eloquent models as JSON: