validation.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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. 'array' => 'The :attribute field must be an array.',
  22. 'ascii' => 'The :attribute field must only contain single-byte alphanumeric characters and symbols.',
  23. 'before' => 'The :attribute field must be a date before :date.',
  24. 'before_or_equal' => 'The :attribute field must be a date before or equal to :date.',
  25. 'between' => [
  26. 'array' => 'The :attribute field must have between :min and :max items.',
  27. 'file' => 'The :attribute field must be between :min and :max kilobytes.',
  28. 'numeric' => 'The :attribute field must be between :min and :max.',
  29. 'string' => 'The :attribute field must be between :min and :max characters.',
  30. ],
  31. 'boolean' => 'The :attribute field must be true or false.',
  32. 'can' => 'The :attribute field contains an unauthorized value.',
  33. 'cannot_delete_related' => 'The :attribute field cannot be deleted because it has related records.',
  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_end_with' => 'The :attribute field must not end with one of the following: :values.',
  49. 'doesnt_start_with' => 'The :attribute field must not start with one of the following: :values.',
  50. 'email' => 'The :attribute field must be a valid email address.',
  51. 'ends_with' => 'The :attribute field must end with one of the following: :values.',
  52. 'enum' => 'The selected :attribute is invalid.',
  53. 'event_full' => 'The selected event is full.',
  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. 'integer' => 'The :attribute field must be an integer.',
  75. 'ip' => 'The :attribute field must be a valid IP address.',
  76. 'ipv4' => 'The :attribute field must be a valid IPv4 address.',
  77. 'ipv6' => 'The :attribute field must be a valid IPv6 address.',
  78. 'json' => 'The :attribute field must be a valid JSON string.',
  79. 'list' => 'The :attribute field must be a list.',
  80. 'lowercase' => 'The :attribute field must be lowercase.',
  81. 'lt' => [
  82. 'array' => 'The :attribute field must have less than :value items.',
  83. 'file' => 'The :attribute field must be less than :value kilobytes.',
  84. 'numeric' => 'The :attribute field must be less than :value.',
  85. 'string' => 'The :attribute field must be less than :value characters.',
  86. ],
  87. 'lte' => [
  88. 'array' => 'The :attribute field must not have more than :value items.',
  89. 'file' => 'The :attribute field must be less than or equal to :value kilobytes.',
  90. 'numeric' => 'The :attribute field must be less than or equal to :value.',
  91. 'string' => 'The :attribute field must be less than or equal to :value characters.',
  92. ],
  93. 'mac_address' => 'The :attribute field must be a valid MAC address.',
  94. 'max' => [
  95. 'array' => 'The :attribute field must not have more than :max items.',
  96. 'file' => 'The :attribute field must not be greater than :max kilobytes.',
  97. 'numeric' => 'The :attribute field must not be greater than :max.',
  98. 'string' => 'The :attribute field must not be greater than :max characters.',
  99. ],
  100. 'max_digits' => 'The :attribute field must not have more than :max digits.',
  101. 'mimes' => 'The :attribute field must be a file of type: :values.',
  102. 'mimetypes' => 'The :attribute field must be a file of type: :values.',
  103. 'min' => [
  104. 'array' => 'The :attribute field must have at least :min items.',
  105. 'file' => 'The :attribute field must be at least :min kilobytes.',
  106. 'numeric' => 'The :attribute field must be at least :min.',
  107. 'string' => 'The :attribute field must be at least :min characters.',
  108. ],
  109. 'min_digits' => 'The :attribute field must have at least :min digits.',
  110. 'missing' => 'The :attribute field must be missing.',
  111. 'missing_if' => 'The :attribute field must be missing when :other is :value.',
  112. 'missing_unless' => 'The :attribute field must be missing unless :other is :value.',
  113. 'missing_with' => 'The :attribute field must be missing when :values is present.',
  114. 'missing_with_all' => 'The :attribute field must be missing when :values are present.',
  115. 'multiple_of' => 'The :attribute field must be a multiple of :value.',
  116. 'not_in' => 'The selected :attribute is invalid.',
  117. 'not_regex' => 'The :attribute field format is invalid.',
  118. 'numeric' => 'The :attribute field must be a number.',
  119. 'password' => [
  120. 'letters' => 'The :attribute field must contain at least one letter.',
  121. 'mixed' => 'The :attribute field must contain at least one uppercase and one lowercase letter.',
  122. 'numbers' => 'The :attribute field must contain at least one number.',
  123. 'symbols' => 'The :attribute field must contain at least one symbol.',
  124. 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.',
  125. ],
  126. 'payment_cant_be_refunded' => 'This payment cannot be refunded.',
  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_unless' => 'The :attribute field is prohibited unless :other is in :values.',
  135. 'prohibits' => 'The :attribute field prohibits :other from being present.',
  136. 'provider_unavailable' => 'The provider is unavailable for the selected date and time.',
  137. 'refund_value_greater_than_payment_value' => 'The refund value cannot be greater than the payment value.',
  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. 'document' => [
  180. 'invalid' => 'The CPF or CNPJ provided is invalid.',
  181. ],
  182. 'user_id' => [
  183. 'already_linked_to_client' => 'This user is already linked to a client.',
  184. 'already_linked_to_provider' => 'This user is already linked to a provider.',
  185. ],
  186. 'zip_code' => [
  187. 'invalid' => 'The zip code provided is invalid. It must contain 8 digits.',
  188. ],
  189. 'source' => [
  190. 'invalid' => 'The source type is invalid. It must be Provider or Client.',
  191. ],
  192. 'source_id' => [
  193. 'not_found' => 'The source record was not found.',
  194. ],
  195. 'address_type' => [
  196. 'invalid' => 'The address type is invalid.',
  197. ],
  198. 'schedule' => [
  199. 'weekly_limit_exceeded' => 'This provider already has 2 schedules with this client in the same week.',
  200. ],
  201. 'opportunity' => [
  202. 'already_assigned' => 'This opportunity already has a provider assigned.',
  203. 'proposal_already_sent' => 'You have already sent a proposal for this opportunity.',
  204. 'provider_refused' => 'You were previously refused for this opportunity.',
  205. 'provider_not_working' => 'Provider does not work on this day/period.',
  206. 'provider_blocked' => 'Provider has a block on this day/time.',
  207. 'schedule_conflict' => 'Provider already has a schedule at this time.',
  208. 'code_already_verified' => 'The code has already been verified for this schedule.',
  209. 'invalid_code' => 'The provided code is invalid.',
  210. ],
  211. 'provider_client_block' => [
  212. 'already_blocked' => 'This client is already blocked by this provider.',
  213. ],
  214. 'client_provider_block' => [
  215. 'already_blocked' => 'This provider is already blocked by this client.',
  216. ],
  217. ],
  218. /*
  219. |--------------------------------------------------------------------------
  220. | Custom Validation Attributes
  221. |--------------------------------------------------------------------------
  222. |
  223. | The following language lines are used to swap our attribute placeholder
  224. | with something more reader friendly such as "E-Mail Address" instead
  225. | of "email". This simply helps us make our message more expressive.
  226. |
  227. */
  228. 'attributes' => [],
  229. ];