| 1234567891011121314151617181920212223242526 |
- <?php
- namespace App\Module\TransferOld\Validator;
- use App\Module\TransferOld\Model\TransferApp;
- use Dcore\Validator;
- /**
- *
- */
- class TrApp extends Validator
- {
- public function validate(mixed $value, array $data): bool
- {
- $field = $this->args[0]??"transferApp";
- $app = TransferApp::query()->where('id', $value)->first();
- if($app){
- $this->validationSet($field,$app);
- return true;
- }
- return false;
- }
- }
|