%PDF- %PDF-
Direktori : /www/loslex/demo/app/Rules/ |
Current File : /www/loslex/demo/app/Rules/ContestLevelChange.php |
<?php namespace App\Rules; use Closure; use Illuminate\Contracts\Validation\DataAwareRule; use Illuminate\Contracts\Validation\ValidationRule; class ContestLevelChange implements DataAwareRule, ValidationRule { /** * All of the data under validation. * @var array<string, mixed> */ protected $data = []; /** * Set the data under validation. * @param array<string, mixed> $data */ public function setData(array $data): static { $this->data = $data; return $this; } /** * Run the validation rule. * @param \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString $fail */ public function validate(string $attribute, mixed $value, Closure $fail): void { // $fail('validation.contesttwoweeks')->translate(); } }