ValidationRule.php 408 B

123456789101112131415161718
  1. <?php
  2. namespace Illuminate\Contracts\Validation;
  3. use Closure;
  4. interface ValidationRule
  5. {
  6. /**
  7. * Run the validation rule.
  8. *
  9. * @param string $attribute
  10. * @param mixed $value
  11. * @param \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString $fail
  12. * @return void
  13. */
  14. public function validate(string $attribute, mixed $value, Closure $fail): void;
  15. }