This commit is contained in:
James Cole
2019-08-21 05:15:47 +02:00
parent ecc37b2ed3
commit 21a9e981a2
6 changed files with 109 additions and 29 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace FireflyIII\Rules;
use Illuminate\Contracts\Validation\Rule;
/**
* Class LessThanPiggyTarget
*/
class LessThanPiggyTarget implements Rule
{
/**
* Get the validation error message.
*
* @return string
*/
public function message(): string
{
return (string)trans('validation.current_target_amount');
}
/**
* Determine if the validation rule passes.
*
* @param string $attribute
* @param mixed $value
*
* @return bool
*/
public function passes($attribute, $value): bool
{
return true;
}
}