validation.php 1.3 KB

1234567891011121314151617181920
  1. <?php
  2. return array(
  3. 'required' => 'The field :label is required and must contain a value.',
  4. 'min_length' => 'The field :label has to contain at least :param:1 characters.',
  5. 'max_length' => 'The field :label may not contain more than :param:1 characters.',
  6. 'exact_length' => 'The field :label must contain exactly :param:1 characters.',
  7. 'match_value' => 'The field :label must contain the value :param:1.',
  8. 'match_pattern' => 'The field :label must match the pattern :param:1.',
  9. 'match_field' => 'The field :label must match the field :param:1.',
  10. 'valid_email' => 'The field :label must contain a valid email address.',
  11. 'valid_emails' => 'The field :label must contain a list of valid email addresses.',
  12. 'valid_url' => 'The field :label must contain a valid URL.',
  13. 'valid_ip' => 'The field :label must contain a valid IP address.',
  14. 'numeric_min' => 'The minimum numeric value of :label must be :param:1',
  15. 'numeric_max' => 'The maximum numeric value of :label must be :param:1',
  16. 'numeric_between' => 'The field :label must contain a numeric value between :param:1 and :param:2',
  17. 'valid_string' => 'The valid string rule :rule(:param:1) failed for field :label',
  18. 'required_with' => 'The field :label must contain a value if :param:1 contains a value.',
  19. );