Browse Source

fix Input::merge method.

Taylor Otwell 12 years ago
parent
commit
3241de0cc1
1 changed files with 11 additions and 0 deletions
  1. 11 0
      laravel/input.php

+ 11 - 0
laravel/input.php

@@ -235,6 +235,17 @@ class Input {
 	 * @return void
 	 */
 	public static function merge(array $input)
+	{
+		Request::foundation()->request->add($input);
+	}
+
+	/**
+	 * Replace the input for the current request.
+	 *
+	 * @param  array  $input
+	 * @return void
+	 */
+	public static function replace(array $input)
 	{
 		Request::foundation()->request->replace($input);
 	}