updating docs for merge and replace input methods.
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
- [Protecting Routes](#filter)
|
- [Protecting Routes](#filter)
|
||||||
- [Retrieving The Logged In User](#user)
|
- [Retrieving The Logged In User](#user)
|
||||||
- [Logging Out](#logout)
|
- [Logging Out](#logout)
|
||||||
|
- [Writing Custom Drivers](#drivers)
|
||||||
|
|
||||||
> **Note:** Before using the Auth class, you must [specify a session driver](/docs/session/config).
|
> **Note:** Before using the Auth class, you must [specify a session driver](/docs/session/config).
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
- [Old Input](#old-input)
|
- [Old Input](#old-input)
|
||||||
- [Redirecting With Old Input](#redirecting-with-old-input)
|
- [Redirecting With Old Input](#redirecting-with-old-input)
|
||||||
- [Cookies](#cookies)
|
- [Cookies](#cookies)
|
||||||
|
- [Merging & Replacing](#merge)
|
||||||
|
|
||||||
<a name="input"></a>
|
<a name="input"></a>
|
||||||
## Input
|
## Input
|
||||||
@@ -121,4 +122,17 @@ Laravel provides a nice wrapper around the $_COOKIE array. However, there are a
|
|||||||
|
|
||||||
#### Deleting a cookie:
|
#### Deleting a cookie:
|
||||||
|
|
||||||
Cookie::forget('name');
|
Cookie::forget('name');
|
||||||
|
|
||||||
|
<a name="merge"></a>
|
||||||
|
## 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'));
|
||||||
Reference in New Issue
Block a user