diff --git a/src/Bag/Pipelines/Pipes/Validate.php b/src/Bag/Pipelines/Pipes/Validate.php index 7435837..4e8214b 100644 --- a/src/Bag/Pipelines/Pipes/Validate.php +++ b/src/Bag/Pipelines/Pipes/Validate.php @@ -35,7 +35,7 @@ public function __invoke(BagInput $input): BagInput $aliases = $input->params->aliases(); $rules = LaravelCollection::wrap($bagClass::rules())->mapWithKeys(function (mixed $rules, string $key) use ($aliases) { - $key = $aliases['output'][$key] ?? $key; + $key = $aliases['input'][$key] ?? $key; return [$key => $rules]; });