Added callback wrapper for JSONP auto wrapping.
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user