Commit cf6e2a76 authored by Jesse O'Brien's avatar Jesse O'Brien

Add documentation for JSONP Response

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