handel validation dosen't replacer (cusom message)

This commit is contained in:
alighorbani committed 2021-04-01 23:10:46 +04:30
1 parent 1a871a7c3c
commit 9c82be05ea
1 file changed
+4 -2
+4 -2
View File
@@ -72,8 +72,10 @@ class VertaServiceProvider extends ServiceProvider
}
Validator::extend($name, $validatorClass . $methods[self::EXTEND_INDEX]);
Validator::replacer($name, $validatorClass . $methods[self::REPLACER_INDEX]);
if (array_key_exists(self::REPLACER_INDEX, $methods)) {
Validator::replacer($name, $validatorClass . $methods[self::REPLACER_INDEX]);
}
}
}
}