From e7ee6865b1c69596b1c84dd403ab43a331589515 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 21 May 2012 10:55:08 -0500 Subject: [PATCH] Updating docs. --- laravel/documentation/input.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/laravel/documentation/input.md b/laravel/documentation/input.md index 06343f23..14221ecd 100644 --- a/laravel/documentation/input.md +++ b/laravel/documentation/input.md @@ -3,6 +3,7 @@ # Input & Cookies ## Contents - [Input](#input) +- [JSON Input](#json) - [Files](#files) - [Old Input](#old-input) - [Redirecting With Old Input](#redirecting-with-old-input) @@ -44,6 +45,15 @@ #### Determining if the input contains a given item: > **Note:** The "has" method will return *false* if the input item is an empty string. + +## JSON Input + +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: + +#### Get JSON input to the application: + + $data = Input::json(); + ## Files