Rule.php 390B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Illuminate\Contracts\Validation;
  3. interface Rule
  4. {
  5. /**
  6. * Determine if the validation rule passes.
  7. *
  8. * @param string $attribute
  9. * @param mixed $value
  10. * @return bool
  11. */
  12. public function passes($attribute, $value);
  13. /**
  14. * Get the validation error message.
  15. *
  16. * @return string
  17. */
  18. public function message();
  19. }