Skip to content

Commit e7ee686

Browse files
committed
Updating docs.
1 parent 0f0c291 commit e7ee686

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

laravel/documentation/input.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Contents
44

55
- [Input](#input)
6+
- [JSON Input](#json)
67
- [Files](#files)
78
- [Old Input](#old-input)
89
- [Redirecting With Old Input](#redirecting-with-old-input)
@@ -44,6 +45,15 @@ By default, *null* will be returned if the input item does not exist. However, y
4445

4546
> **Note:** The "has" method will return *false* if the input item is an empty string.
4647
48+
<a name="json"></a>
49+
## JSON Input
50+
51+
When working with JavaScript MVC frameworks like Backbone.js, you will need to get the JSON posted by the application. To make your life easier, we've included the `Input::json` method:
52+
53+
#### Get JSON input to the application:
54+
55+
$data = Input::json();
56+
4757
<a name="files"></a>
4858
## Files
4959

0 commit comments

Comments
 (0)