validation.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Validation Language Lines
  6. |--------------------------------------------------------------------------
  7. |
  8. | The following language lines contain the default error messages used by
  9. | the validator class. Some of these rules have multiple versions such
  10. | as the size rules. Feel free to tweak each of these messages here.
  11. |
  12. */
  13. 'accepted' => 'The :attribute must be accepted.',
  14. 'active_url' => 'The :attribute is not a valid URL.',
  15. 'after' => 'The :attribute must be a date after :date.',
  16. 'alpha' => 'The :attribute may only contain letters.',
  17. 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
  18. 'alpha_num' => 'The :attribute may only contain letters and numbers.',
  19. 'array' => 'The :attribute must be an array.',
  20. 'before' => 'The :attribute must be a date before :date.',
  21. 'between' => [
  22. 'numeric' => 'The :attribute must be between :min and :max.',
  23. 'file' => 'The :attribute must be between :min and :max kilobytes.',
  24. 'string' => 'The :attribute must be between :min and :max characters.',
  25. 'array' => 'The :attribute must have between :min and :max items.',
  26. ],
  27. 'boolean' => 'The :attribute field must be true or false.',
  28. 'confirmed' => 'The :attribute confirmation does not match.',
  29. 'date' => 'The :attribute is not a valid date.',
  30. 'date_format' => 'The :attribute does not match the format :format.',
  31. 'different' => 'The :attribute and :other must be different.',
  32. 'digits' => 'The :attribute must be :digits digits.',
  33. 'digits_between' => 'The :attribute must be between :min and :max digits.',
  34. 'distinct' => 'The :attribute field has a duplicate value.',
  35. 'email' => 'The :attribute must be a valid email address.',
  36. 'exists' => 'The selected :attribute is invalid.',
  37. 'filled' => 'The :attribute field is required.',
  38. 'image' => 'The :attribute must be an image.',
  39. 'in' => 'The selected :attribute is invalid.',
  40. 'in_array' => 'The :attribute field does not exist in :other.',
  41. 'integer' => 'The :attribute must be an integer.',
  42. 'ip' => 'The :attribute must be a valid IP address.',
  43. 'json' => 'The :attribute must be a valid JSON string.',
  44. 'max' => [
  45. 'numeric' => 'The :attribute may not be greater than :max.',
  46. 'file' => 'The :attribute may not be greater than :max kilobytes.',
  47. 'string' => 'The :attribute may not be greater than :max characters.',
  48. 'array' => 'The :attribute may not have more than :max items.',
  49. ],
  50. 'mimes' => 'The :attribute must be a file of type: :values.',
  51. 'min' => [
  52. 'numeric' => 'The :attribute must be at least :min.',
  53. 'file' => 'The :attribute must be at least :min kilobytes.',
  54. 'string' => 'The :attribute must be at least :min characters.',
  55. 'array' => 'The :attribute must have at least :min items.',
  56. ],
  57. 'not_in' => 'The selected :attribute is invalid.',
  58. 'numeric' => 'The :attribute must be a number.',
  59. 'present' => 'The :attribute field must be present.',
  60. 'regex' => 'The :attribute format is invalid.',
  61. 'required' => 'The :attribute field is required.',
  62. 'required_if' => 'The :attribute field is required when :other is :value.',
  63. 'required_unless' => 'The :attribute field is required unless :other is in :values.',
  64. 'required_with' => 'The :attribute field is required when :values is present.',
  65. 'required_with_all' => 'The :attribute field is required when :values is present.',
  66. 'required_without' => 'The :attribute field is required when :values is not present.',
  67. 'required_without_all' => 'The :attribute field is required when none of :values are present.',
  68. 'same' => 'The :attribute and :other must match.',
  69. 'size' => [
  70. 'numeric' => 'The :attribute must be :size.',
  71. 'file' => 'The :attribute must be :size kilobytes.',
  72. 'string' => 'The :attribute must be :size characters.',
  73. 'array' => 'The :attribute must contain :size items.',
  74. ],
  75. 'string' => 'The :attribute must be a string.',
  76. 'timezone' => 'The :attribute must be a valid zone.',
  77. 'unique' => 'The :attribute has already been taken.',
  78. 'url' => 'The :attribute format is invalid.',
  79. /*
  80. |--------------------------------------------------------------------------
  81. | Custom Validation Language Lines
  82. |--------------------------------------------------------------------------
  83. |
  84. | Here you may specify custom validation messages for attributes using the
  85. | convention "attribute.rule" to name the lines. This makes it quick to
  86. | specify a specific custom language line for a given attribute rule.
  87. |
  88. */
  89. 'custom' => [
  90. 'attribute-name' => [
  91. 'rule-name' => 'custom-message',
  92. ],
  93. ],
  94. /*
  95. |--------------------------------------------------------------------------
  96. | Custom Validation Attributes
  97. |--------------------------------------------------------------------------
  98. |
  99. | The following language lines are used to swap attribute place-holders
  100. | with something more reader friendly such as E-Mail Address instead
  101. | of "email". This simply helps us make messages a little cleaner.
  102. |
  103. */
  104. 'attributes' => [],
  105. ];