validation.php 7.1KB

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