Fix amount

This commit is contained in:
James Cole
2024-01-21 18:01:00 +01:00
parent 4a37152aea
commit f045e4ea69
4 changed files with 5 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ class IsValidAmount implements ValidationRule
return;
}
// must be less than 100 million and 1709:
// must be less than a large number
if($this->moreThanLots($value)) {
$fail('validation.lte.numeric')->translate(['value' => self::BIG_AMOUNT]);
$message = sprintf('IsValidAmount: "%s" must be more than %s.', $value, self::BIG_AMOUNT);