updating docs for merge and replace input methods.
This commit is contained in:
parent
7d1102dd6e
commit
0f0c291ffb
|
@ -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).
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ ## Contents
|
|||
- [Old Input](#old-input)
|
||||
- [Redirecting With Old Input](#redirecting-with-old-input)
|
||||
- [Cookies](#cookies)
|
||||
- [Merging & Replacing](#merge)
|
||||
|
||||
<a name="input"></a>
|
||||
## Input
|
||||
|
@ -122,3 +123,16 @@ #### Creating a "permanent" cookie that lasts five years:
|
|||
#### Deleting a cookie:
|
||||
|
||||
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'));
|
Loading…
Reference in New Issue