added Input::merge method.
This commit is contained in:
parent
bb506bb30b
commit
f1feb467f1
|
@ -54,6 +54,7 @@ ## Laravel 3.2
|
|||
- Allow multiple views to be registered for a single composer.
|
||||
- Added `Request::set_env` method.
|
||||
- `Schema::drop` now accepts `$connection` as second parameter.
|
||||
- Added `Input::merge` method.
|
||||
|
||||
<a name="upgrade-3.2"></a>
|
||||
## Upgrading From 3.1
|
||||
|
|
|
@ -228,4 +228,15 @@ public static function flush()
|
|||
Session::flash(Input::old_input, array());
|
||||
}
|
||||
|
||||
/**
|
||||
* Merge new input into the current request's input array.
|
||||
*
|
||||
* @param array $input
|
||||
* @return void
|
||||
*/
|
||||
public static function merge(array $input)
|
||||
{
|
||||
Request::foundation()->request->replace($input);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue