diff --git a/src/Illuminate/Http/Request.php b/src/Illuminate/Http/Request.php index 89f292517eb2..35f489123e5f 100644 --- a/src/Illuminate/Http/Request.php +++ b/src/Illuminate/Http/Request.php @@ -287,22 +287,26 @@ public function userAgent() * Merge new input into the current request's input array. * * @param array $input - * @return void + * @return \Illuminate\Http\Request */ public function merge(array $input) { $this->getInputSource()->add($input); + + return $this; } /** * Replace the input for the current request. * * @param array $input - * @return void + * @return \Illuminate\Http\Request */ public function replace(array $input) { $this->getInputSource()->replace($input); + + return $this; } /**