diff --git a/src/Illuminate/Validation/Concerns/ValidatesAttributes.php b/src/Illuminate/Validation/Concerns/ValidatesAttributes.php index cb80dc180079..3077bf17641c 100644 --- a/src/Illuminate/Validation/Concerns/ValidatesAttributes.php +++ b/src/Illuminate/Validation/Concerns/ValidatesAttributes.php @@ -1416,7 +1416,7 @@ public function validateMax($attribute, $value, $parameters) */ public function validateMaxDigits($attribute, $value, $parameters) { - $this->requireParameterCount(1, $parameters, 'max'); + $this->requireParameterCount(1, $parameters, 'max_digits'); $length = strlen((string) $value); @@ -1518,7 +1518,7 @@ public function validateMin($attribute, $value, $parameters) */ public function validateMinDigits($attribute, $value, $parameters) { - $this->requireParameterCount(1, $parameters, 'min'); + $this->requireParameterCount(1, $parameters, 'min_digits'); $length = strlen((string) $value); @@ -1609,7 +1609,7 @@ public function validateMissingWith($attribute, $value, $parameters) */ public function validateMissingWithAll($attribute, $value, $parameters) { - $this->requireParameterCount(1, $parameters, 'missing_with'); + $this->requireParameterCount(1, $parameters, 'missing_with_all'); if (Arr::has($this->data, $parameters)) { return $this->validateMissing($attribute, $value, $parameters);