From ecf0a947b707e9a64d90e06b5a277921f665f629 Mon Sep 17 00:00:00 2001 From: Brandon Wiele Date: Fri, 5 Sep 2014 10:46:52 -0500 Subject: [PATCH] Combine provided input with Input::all() --- src/Laracasts/Commander/CommanderTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Laracasts/Commander/CommanderTrait.php b/src/Laracasts/Commander/CommanderTrait.php index 688768a..fa1bfbd 100644 --- a/src/Laracasts/Commander/CommanderTrait.php +++ b/src/Laracasts/Commander/CommanderTrait.php @@ -16,7 +16,7 @@ trait CommanderTrait { */ protected function execute($command, array $input = null, $decorators = []) { - $input = $input ?: Input::all(); + $input = $input ? array_merge(Input::all(), $input) : Input::all(); $command = $this->mapInputToCommand($command, $input);