Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
e3317324
Commit
e3317324
authored
Jun 16, 2012
by
Dayle Rees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added clear() method to the input class
Signed-off-by: Dayle Rees <thepunkfan@gmail.com>
parent
34919aff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
laravel/documentation/input.md
+8
-2
laravel/input.php
+10
-0
No files found.
laravel/documentation/input.md
View file @
e3317324
...
...
@@ -145,4 +145,10 @@ Sometimes you may wish to merge or replace the current input. Here's how:
#### Replacing the entire input array with new data:
Input::merge(array('doctor' => 'Bones', 'captain' => 'Kirk'));
\ No newline at end of file
Input::merge(array('doctor' => 'Bones', 'captain' => 'Kirk'));
## Clearing Input
To clear all input data for the current request, using the
`clear()`
method, for example:
Input::clear();
\ No newline at end of file
laravel/input.php
View file @
e3317324
...
...
@@ -287,4 +287,13 @@ class Input {
Request
::
foundation
()
->
request
->
replace
(
$input
);
}
/**
* Clear the input for the current request.
* @return void
*/
public
static
function
clear
()
{
Request
::
foundation
()
->
request
->
replace
(
array
());
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment