Skip to content

Commit

Permalink
Added "Creating A JSONP Response"
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmayer committed Jan 12, 2013
1 parent deec3fa commit 9eab5fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ Note that there is no convention on where composer classes may be stored. You ar

return Response::json(array('name' => 'Steve', 'state' => 'CA'));

**Creating A JSONP Response**

return Response::json(array('name' => 'Steve', 'state' => 'CA'))->setCallback(Input::get('callback'));

**Creating a File Download Response**

return Response::download($pathToFile);
Expand Down

0 comments on commit 9eab5fa

Please sign in to comment.