1 | <?php |
||
2 | |||
3 | namespace XLaravel\ValidationTrTaxNumberExtend\Rules; |
||
4 | |||
5 | use Illuminate\Contracts\Validation\Rule; |
||
6 | use XAdam\TrTaxNumberValidation; |
||
7 | |||
8 | class TrTaxNumberRule implements Rule |
||
9 | { |
||
10 | public function passes($attribute, $value): bool |
||
11 | { |
||
12 | return TrTaxNumberValidation::validate($value); |
||
13 | } |
||
14 | |||
15 | public function message(): string |
||
16 | { |
||
17 | return trans('X-Laravel::validationTrTaxNumberExtend.error'); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
18 | } |
||
19 | } |
||
20 |