Skip to content

Commit

Permalink
Password validator should inherit custom error messages and attributes (
Browse files Browse the repository at this point in the history
  • Loading branch information
jochensengier authored Jul 23, 2021
1 parent dbfad18 commit a4081b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Validation/Rules/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public function passes($attribute, $value)
{
$validator = Validator::make($this->data, [
$attribute => 'string|min:'.$this->min,
]);
], $this->validator->customMessages, $this->validator->customAttributes);

if ($validator->fails()) {
return $this->fail($validator->messages()->all());
Expand Down

0 comments on commit a4081b3

Please sign in to comment.