validation.php 1.3 KB

1234567891011121314151617181920212223242526272829
  1. <?php
  2. return [
  3. 'alpha' => ':field must contain only letters',
  4. 'alpha_dash' => ':field must contain only numbers, letters and dashes',
  5. 'alpha_numeric' => ':field must contain only letters and numbers',
  6. 'color' => ':field must be a color',
  7. 'credit_card' => ':field must be a credit card number',
  8. 'date' => ':field must be a date',
  9. 'decimal' => ':field must be a decimal with :param2 places',
  10. 'digit' => ':field must be a digit',
  11. 'email' => ':field must be an email address',
  12. 'email_domain' => ':field must contain a valid email domain',
  13. 'equals' => ':field must equal :param2',
  14. 'exact_length' => ':field must be exactly :param2 characters long',
  15. 'in_array' => ':field must be one of the available options',
  16. 'ip' => ':field must be an ip address',
  17. 'matches' => ':field must be the same as :param3',
  18. 'min_length' => ':field must be at least :param2 characters long',
  19. 'max_length' => ':field must not exceed :param2 characters long',
  20. 'not_empty' => ':field must not be empty',
  21. 'numeric' => ':field must be numeric',
  22. 'phone' => ':field must be a phone number',
  23. 'range' => ':field must be within the range of :param2 to :param3',
  24. 'regex' => ':field does not match the required format',
  25. 'url' => ':field must be a url',
  26. ];