Merge pull request #1501 from JesseObrien/master
Add Response::jsonp() to Response class.
This commit is contained in:
@@ -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('myCallback', array('name' => 'Batman'));
|
||||
|
||||
#### Returning Eloquent models as JSON:
|
||||
|
||||
return Response::eloquent(User::find(1));
|
||||
|
||||
Reference in New Issue
Block a user