Add documentation for JSONP Response
This commit is contained in:
parent
1beea5d594
commit
cf6e2a768b
|
@ -62,6 +62,10 @@ #### Returning a JSON response:
|
|||
|
||||
return Response::json(array('name' => 'Batman'));
|
||||
|
||||
#### Returning a JSONP response:
|
||||
|
||||
return Response::jsonp(array('name' => 'Batman'));
|
||||
|
||||
#### Returning Eloquent models as JSON:
|
||||
|
||||
return Response::eloquent(User::find(1));
|
||||
|
|
Loading…
Reference in New Issue