validation.php 12 KB

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