You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
7.5 KiB

4 years ago
  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. 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
  17. 'alpha' => 'The :attribute may only contain letters.',
  18. 'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.',
  19. 'alpha_num' => 'The :attribute may only contain letters and numbers.',
  20. 'array' => 'The :attribute must be an array.',
  21. 'before' => 'The :attribute must be a date before :date.',
  22. 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
  23. 'between' => [
  24. 'numeric' => 'The :attribute must be between :min and :max.',
  25. 'file' => 'The :attribute must be between :min and :max kilobytes.',
  26. 'string' => 'The :attribute must be between :min and :max characters.',
  27. 'array' => 'The :attribute must have between :min and :max items.',
  28. ],
  29. 'boolean' => 'The :attribute field must be true or false.',
  30. 'confirmed' => 'The :attribute confirmation does not match.',
  31. 'date' => 'The :attribute is not a valid date.',
  32. 'date_equals' => 'The :attribute must be a date equal to :date.',
  33. 'date_format' => 'The :attribute does not match the format :format.',
  34. 'different' => 'The :attribute and :other must be different.',
  35. 'digits' => 'The :attribute must be :digits digits.',
  36. 'digits_between' => 'The :attribute must be between :min and :max digits.',
  37. 'dimensions' => 'The :attribute has invalid image dimensions.',
  38. 'distinct' => 'The :attribute field has a duplicate value.',
  39. 'email' => 'The :attribute must be a valid email address.',
  40. 'ends_with' => 'The :attribute must end with one of the following: :values.',
  41. 'exists' => 'The selected :attribute is invalid.',
  42. 'file' => 'The :attribute must be a file.',
  43. 'filled' => 'The :attribute field must have a value.',
  44. 'gt' => [
  45. 'numeric' => 'The :attribute must be greater than :value.',
  46. 'file' => 'The :attribute must be greater than :value kilobytes.',
  47. 'string' => 'The :attribute must be greater than :value characters.',
  48. 'array' => 'The :attribute must have more than :value items.',
  49. ],
  50. 'gte' => [
  51. 'numeric' => 'The :attribute must be greater than or equal :value.',
  52. 'file' => 'The :attribute must be greater than or equal :value kilobytes.',
  53. 'string' => 'The :attribute must be greater than or equal :value characters.',
  54. 'array' => 'The :attribute must have :value items or more.',
  55. ],
  56. 'image' => 'The :attribute must be an image.',
  57. 'in' => 'The selected :attribute is invalid.',
  58. 'in_array' => 'The :attribute field does not exist in :other.',
  59. 'integer' => 'The :attribute must be an integer.',
  60. 'ip' => 'The :attribute must be a valid IP address.',
  61. 'ipv4' => 'The :attribute must be a valid IPv4 address.',
  62. 'ipv6' => 'The :attribute must be a valid IPv6 address.',
  63. 'json' => 'The :attribute must be a valid JSON string.',
  64. 'lt' => [
  65. 'numeric' => 'The :attribute must be less than :value.',
  66. 'file' => 'The :attribute must be less than :value kilobytes.',
  67. 'string' => 'The :attribute must be less than :value characters.',
  68. 'array' => 'The :attribute must have less than :value items.',
  69. ],
  70. 'lte' => [
  71. 'numeric' => 'The :attribute must be less than or equal :value.',
  72. 'file' => 'The :attribute must be less than or equal :value kilobytes.',
  73. 'string' => 'The :attribute must be less than or equal :value characters.',
  74. 'array' => 'The :attribute must not have more than :value items.',
  75. ],
  76. 'max' => [
  77. 'numeric' => 'The :attribute may not be greater than :max.',
  78. 'file' => 'The :attribute may not be greater than :max kilobytes.',
  79. 'string' => 'The :attribute may not be greater than :max characters.',
  80. 'array' => 'The :attribute may not have more than :max items.',
  81. ],
  82. 'mimes' => 'The :attribute must be a file of type: :values.',
  83. 'mimetypes' => 'The :attribute must be a file of type: :values.',
  84. 'min' => [
  85. 'numeric' => 'The :attribute must be at least :min.',
  86. 'file' => 'The :attribute must be at least :min kilobytes.',
  87. 'string' => 'The :attribute must be at least :min characters.',
  88. 'array' => 'The :attribute must have at least :min items.',
  89. ],
  90. 'multiple_of' => 'The :attribute must be a multiple of :value.',
  91. 'not_in' => 'The selected :attribute is invalid.',
  92. 'not_regex' => 'The :attribute format is invalid.',
  93. 'numeric' => 'The :attribute must be a number.',
  94. 'password' => 'The password is incorrect.',
  95. 'present' => 'The :attribute field must be present.',
  96. 'regex' => 'The :attribute format is invalid.',
  97. 'required' => 'The :attribute field is required.',
  98. 'required_if' => 'The :attribute field is required when :other is :value.',
  99. 'required_unless' => 'The :attribute field is required unless :other is in :values.',
  100. 'required_with' => 'The :attribute field is required when :values is present.',
  101. 'required_with_all' => 'The :attribute field is required when :values are present.',
  102. 'required_without' => 'The :attribute field is required when :values is not present.',
  103. 'required_without_all' => 'The :attribute field is required when none of :values are present.',
  104. 'same' => 'The :attribute and :other must match.',
  105. 'size' => [
  106. 'numeric' => 'The :attribute must be :size.',
  107. 'file' => 'The :attribute must be :size kilobytes.',
  108. 'string' => 'The :attribute must be :size characters.',
  109. 'array' => 'The :attribute must contain :size items.',
  110. ],
  111. 'starts_with' => 'The :attribute must start with one of the following: :values.',
  112. 'string' => 'The :attribute must be a string.',
  113. 'timezone' => 'The :attribute must be a valid zone.',
  114. 'unique' => 'The :attribute has already been taken.',
  115. 'uploaded' => 'The :attribute failed to upload.',
  116. 'url' => 'The :attribute format is invalid.',
  117. 'uuid' => 'The :attribute must be a valid UUID.',
  118. /*
  119. |--------------------------------------------------------------------------
  120. | Custom Validation Language Lines
  121. |--------------------------------------------------------------------------
  122. |
  123. | Here you may specify custom validation messages for attributes using the
  124. | convention "attribute.rule" to name the lines. This makes it quick to
  125. | specify a specific custom language line for a given attribute rule.
  126. |
  127. */
  128. 'custom' => [
  129. 'attribute-name' => [
  130. 'rule-name' => 'custom-message',
  131. ],
  132. ],
  133. /*
  134. |--------------------------------------------------------------------------
  135. | Custom Validation Attributes
  136. |--------------------------------------------------------------------------
  137. |
  138. | The following language lines are used to swap our attribute placeholder
  139. | with something more reader friendly such as "E-Mail Address" instead
  140. | of "email". This simply helps us make our message more expressive.
  141. |
  142. */
  143. 'attributes' => [],
  144. ];