modify plugin name

This commit is contained in:
2022-02-25 17:12:15 +08:00
parent 14dd7efda6
commit db725b710d
13 changed files with 60 additions and 60 deletions
+2 -2
View File
@@ -99,11 +99,11 @@ abstract class BaseValidator
* @param $message
* @return bool
*/
public function addError($message): bool
public function addError($field, $message): bool
{
$this->isFail = FALSE;
$message = str_replace(':attribute', $this->field, $message);
$message = str_replace(':attribute', $field, $message);
$this->message = $message;