validation.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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' => ':attribute ต้องได้รับการยอมรับ',
  14. 'accepted_if' => ':attribute ต้องได้รับการยอมรับเมื่อ :other เป็น :value',
  15. 'active_url' => ':attribute ไม่ใช่ URL ที่ถูกต้อง',
  16. 'after' => ':attribute ต้องเป็นวันที่หลังจาก :date',
  17. 'after_or_equal' => ':attribute ต้องเป็นวันที่หลังจากหรือเท่ากับ :date',
  18. 'alpha' => ':attribute ต้องประกอบด้วยตัวอักษรเท่านั้น',
  19. 'alpha_dash' => ':attribute ต้องประกอบด้วยตัวอักษร ตัวเลข ขีดกลาง และขีดล่างเท่านั้น',
  20. 'alpha_num' => ':attribute ต้องประกอบด้วยตัวอักษรและตัวเลขเท่านั้น',
  21. 'array' => ':attribute ต้องเป็นอาร์เรย์',
  22. 'before' => ':attribute ต้องเป็นวันที่ก่อน :date',
  23. 'before_or_equal' => ':attribute ต้องเป็นวันที่ก่อนหรือเท่ากับ :date',
  24. 'between' => [
  25. 'numeric' => ':attribute ต้องอยู่ระหว่าง :min ถึง :max',
  26. 'file' => ':attribute ต้องมีขนาดระหว่าง :min ถึง :max กิโลไบต์',
  27. 'string' => ':attribute ต้องมีความยาวระหว่าง :min ถึง :max ตัวอักษร',
  28. 'array' => ':attribute ต้องมีจำนวนรายการระหว่าง :min ถึง :max รายการ',
  29. ],
  30. 'boolean' => ':attribute ต้องเป็นค่า true หรือ false',
  31. 'confirmed' => 'การยืนยัน :attribute ไม่ตรงกัน',
  32. 'current_password' => 'รหัสผ่านไม่ถูกต้อง',
  33. 'date' => ':attribute ไม่ใช่วันที่ที่ถูกต้อง',
  34. 'date_equals' => ':attribute ต้องเป็นวันที่เท่ากับ :date',
  35. 'date_format' => ':attribute ไม่ตรงกับรูปแบบ :format',
  36. 'declined' => ':attribute ต้องถูกปฏิเสธ',
  37. 'declined_if' => ':attribute ต้องถูกปฏิเสธเมื่อ :other เป็น :value',
  38. 'different' => ':attribute และ :other ต้องแตกต่างกัน',
  39. 'digits' => ':attribute ต้องมี :digits หลัก',
  40. 'digits_between' => ':attribute ต้องมีจำนวนหลักระหว่าง :min ถึง :max',
  41. 'dimensions' => ':attribute มีขนาดรูปภาพไม่ถูกต้อง',
  42. 'distinct' => ':attribute มีค่าซ้ำกัน',
  43. 'email' => ':attribute ต้องเป็นที่อยู่อีเมลที่ถูกต้อง',
  44. 'ends_with' => ':attribute ต้องลงท้ายด้วยหนึ่งในค่าต่อไปนี้: :values',
  45. 'enum' => ':attribute ที่เลือกไม่ถูกต้อง',
  46. 'exists' => ':attribute ที่เลือกมีอยู่แล้ว',
  47. 'file' => ':attribute ต้องเป็นไฟล์',
  48. 'filled' => ':attribute ต้องมีค่า',
  49. 'gt' => [
  50. 'numeric' => ':attribute ต้องมากกว่า :value',
  51. 'file' => ':attribute ต้องมีขนาดมากกว่า :value กิโลไบต์',
  52. 'string' => ':attribute ต้องมีความยาวมากกว่า :value ตัวอักษร',
  53. 'array' => ':attribute ต้องมีมากกว่า :value รายการ',
  54. ],
  55. 'gte' => [
  56. 'numeric' => ':attribute ต้องมากกว่าหรือเท่ากับ :value',
  57. 'file' => ':attribute ต้องมีขนาดมากกว่าหรือเท่ากับ :value กิโลไบต์',
  58. 'string' => ':attribute ต้องมีความยาวมากกว่าหรือเท่ากับ :value ตัวอักษร',
  59. 'array' => ':attribute ต้องมี :value รายการหรือมากกว่า',
  60. ],
  61. 'image' => ':attribute ต้องเป็นรูปภาพ',
  62. 'in' => ':attribute ที่เลือกไม่ถูกต้อง',
  63. 'in_array' => ':attribute ไม่มีอยู่ใน :other',
  64. 'integer' => ':attribute ต้องเป็นจำนวนเต็ม',
  65. 'ip' => ':attribute ต้องเป็นที่อยู่ IP ที่ถูกต้อง',
  66. 'ipv4' => ':attribute ต้องเป็นที่อยู่ IPv4 ที่ถูกต้อง',
  67. 'ipv6' => ':attribute ต้องเป็นที่อยู่ IPv6 ที่ถูกต้อง',
  68. 'mac_address' => ':attribute ต้องเป็นที่อยู่ MAC ที่ถูกต้อง',
  69. 'json' => ':attribute ต้องเป็นสตริง JSON ที่ถูกต้อง',
  70. 'lt' => [
  71. 'numeric' => ':attribute ต้องน้อยกว่า :value',
  72. 'file' => ':attribute ต้องมีขนาดน้อยกว่า :value กิโลไบต์',
  73. 'string' => ':attribute ต้องมีความยาวน้อยกว่า :value ตัวอักษร',
  74. 'array' => ':attribute ต้องมีน้อยกว่า :value รายการ',
  75. ],
  76. 'lte' => [
  77. 'numeric' => ':attribute ต้องน้อยกว่าหรือเท่ากับ :value',
  78. 'file' => ':attribute ต้องมีขนาดน้อยกว่าหรือเท่ากับ :value กิโลไบต์',
  79. 'string' => ':attribute ต้องมีความยาวน้อยกว่าหรือเท่ากับ :value ตัวอักษร',
  80. 'array' => ':attribute ต้องมีไม่เกิน :value รายการ',
  81. ],
  82. 'max' => [
  83. 'numeric' => ':attribute ต้องไม่เกิน :max',
  84. 'file' => ':attribute ต้องมีขนาดไม่เกิน :max กิโลไบต์',
  85. 'string' => ':attribute ต้องมีความยาวไม่เกิน :max ตัวอักษร',
  86. 'array' => ':attribute ต้องมีไม่เกิน :max รายการ',
  87. ],
  88. 'mimes' => ':attribute ต้องเป็นไฟล์ประเภท: :values',
  89. 'mimetypes' => ':attribute ต้องเป็นไฟล์ประเภท: :values',
  90. 'min' => [
  91. 'numeric' => ':attribute ต้องมีค่าอย่างน้อย :min',
  92. 'file' => ':attribute ต้องมีขนาดอย่างน้อย :min กิโลไบต์',
  93. 'string' => ':attribute ต้องมีความยาวอย่างน้อย :min ตัวอักษร',
  94. 'array' => ':attribute ต้องมีอย่างน้อย :min รายการ',
  95. ],
  96. 'multiple_of' => ':attribute ต้องเป็นผลคูณของ :value',
  97. 'not_in' => ':attribute ที่เลือกไม่ถูกต้อง',
  98. 'not_regex' => 'รูปแบบของ :attribute ไม่ถูกต้อง',
  99. 'numeric' => ':attribute ต้องเป็นตัวเลข',
  100. 'password' => 'รหัสผ่านไม่ถูกต้อง',
  101. 'present' => ':attribute ต้องมีอยู่',
  102. 'prohibited' => ':attribute ไม่อนุญาต',
  103. 'prohibited_if' => ':attribute ไม่อนุญาตเมื่อ :other เป็น :value',
  104. 'prohibited_unless' => ':attribute ไม่อนุญาต เว้นแต่ :other อยู่ใน :values',
  105. 'prohibits' => ':attribute ห้ามมี :other',
  106. 'regex' => 'รูปแบบของ :attribute ไม่ถูกต้อง',
  107. 'required' => ':attribute จำเป็นต้องกรอก',
  108. 'required_if' => ':attribute จำเป็นต้องกรอกเมื่อ :other เป็น :value',
  109. 'required_unless' => ':attribute จำเป็นต้องกรอก เว้นแต่ :other อยู่ใน :values',
  110. 'required_with' => ':attribute จำเป็นต้องกรอกเมื่อมี :values',
  111. 'required_with_all' => ':attribute จำเป็นต้องกรอกเมื่อมี :values ทั้งหมด',
  112. 'required_without' => ':attribute จำเป็นต้องกรอกเมื่อไม่มี :values',
  113. 'required_without_all' => ':attribute จำเป็นต้องกรอกเมื่อไม่มี :values ใดเลย',
  114. 'same' => ':attribute และ :other ต้องตรงกัน',
  115. 'size' => [
  116. 'numeric' => ':attribute ต้องมีขนาด :size',
  117. 'file' => ':attribute ต้องมีขนาด :size กิโลไบต์',
  118. 'string' => ':attribute ต้องมีความยาว :size ตัวอักษร',
  119. 'array' => ':attribute ต้องมี :size รายการ',
  120. ],
  121. 'starts_with' => ':attribute ต้องขึ้นต้นด้วยหนึ่งในค่าต่อไปนี้: :values',
  122. 'string' => ':attribute ต้องเป็นสตริง',
  123. 'timezone' => ':attribute ต้องเป็นเขตเวลาที่ถูกต้อง',
  124. 'unique' => ':attribute นี้ถูกใช้งานแล้ว',
  125. 'uploaded' => ':attribute อัปโหลดล้มเหลว',
  126. 'url' => ':attribute ต้องเป็น URL ที่ถูกต้อง',
  127. 'uuid' => ':attribute ต้องเป็น UUID ที่ถูกต้อง',
  128. /*
  129. |--------------------------------------------------------------------------
  130. | Custom Validation Language Lines
  131. |--------------------------------------------------------------------------
  132. |
  133. | Here you may specify custom validation messages for attributes using the
  134. | convention "attribute.rule" to name the lines. This makes it quick to
  135. | specify a specific custom language line for a given attribute rule.
  136. |
  137. */
  138. 'custom' => [
  139. 'attribute-name' => [
  140. 'rule-name' => 'custom-message',
  141. ],
  142. ],
  143. /*
  144. |--------------------------------------------------------------------------
  145. | Custom Validation Attributes
  146. |--------------------------------------------------------------------------
  147. |
  148. | The following language lines are used to swap our attribute placeholder
  149. | with something more reader friendly such as "E-Mail Address" instead
  150. | of "email". This simply helps us make our message more expressive.
  151. |
  152. */
  153. 'attributes' => [],
  154. ];