InvokableRule.php 366 B

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