領収証発行サービス
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

33 lines
593B

  1. <?php
  2. namespace App\Rules;
  3. use Illuminate\Contracts\Validation\Rule;
  4. abstract class BaseRule implements Rule
  5. {
  6. abstract public function check($value) : bool;
  7. /**
  8. * Determine if the validation rule passes.
  9. *
  10. * @param string $attribute
  11. * @param mixed $value
  12. * @return bool
  13. */
  14. public function passes($attribute, $value)
  15. {
  16. return $this->check($value);
  17. }
  18. /**
  19. * Get the validation error message.
  20. *
  21. * @return string
  22. */
  23. public function message()
  24. {
  25. return '正しくありません。';
  26. }
  27. }