From 0f0c291ffbc9091b7bad9ea3d02f5529bbbfe7ce Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 21 May 2012 10:53:28 -0500 Subject: [PATCH] updating docs for merge and replace input methods. --- laravel/documentation/auth/usage.md | 1 + laravel/documentation/input.md | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/laravel/documentation/auth/usage.md b/laravel/documentation/auth/usage.md index 4fb3ce51..e02747a0 100644 --- a/laravel/documentation/auth/usage.md +++ b/laravel/documentation/auth/usage.md @@ -7,6 +7,7 @@ ## Contents - [Protecting Routes](#filter) - [Retrieving The Logged In User](#user) - [Logging Out](#logout) +- [Writing Custom Drivers](#drivers) > **Note:** Before using the Auth class, you must [specify a session driver](/docs/session/config). diff --git a/laravel/documentation/input.md b/laravel/documentation/input.md index fb35e0ee..06343f23 100644 --- a/laravel/documentation/input.md +++ b/laravel/documentation/input.md @@ -7,6 +7,7 @@ ## Contents - [Old Input](#old-input) - [Redirecting With Old Input](#redirecting-with-old-input) - [Cookies](#cookies) +- [Merging & Replacing](#merge) ## Input @@ -121,4 +122,17 @@ #### Creating a "permanent" cookie that lasts five years: #### Deleting a cookie: - Cookie::forget('name'); \ No newline at end of file + Cookie::forget('name'); + + +## Merging & Replacing + +Sometimes you may wish to merge or replace the current input. Here's how: + +#### Merging new data into the current input: + + Input::merge(array('name' => 'Spock')); + +#### Replacing the entire input array with new data: + + Input::merge(array('doctor' => 'Bones', 'captain' => 'Kirk')); \ No newline at end of file