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.

163 lines
8.3 KiB

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