validation.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | バリデーション文言
  6. |--------------------------------------------------------------------------
  7. */
  8. 'accepted' => ':attribute を受け入れる必要があります。',
  9. 'accepted_if' => ':other が :value の場合、:attribute を受け入れる必要があります。',
  10. 'active_url' => ':attribute は有効なURLである必要があります。',
  11. 'after' => ':attribute は :date より後の日付である必要があります。',
  12. 'after_or_equal' => ':attribute は :date 以降の日付である必要があります。',
  13. 'alpha' => ':attribute は英字のみを含む必要があります。',
  14. 'alpha_dash' => ':attribute は英字、数字、ハイフン、アンダースコアのみを含む必要があります。',
  15. 'alpha_num' => ':attribute は英字と数字のみを含む必要があります。',
  16. 'any_of' => ':attribute は無効です。',
  17. 'array' => ':attribute は配列である必要があります。',
  18. 'ascii' => ':attribute はASCII文字のみを含む必要があります。',
  19. 'before' => ':attribute は :date より前の日付である必要があります。',
  20. 'before_or_equal' => ':attribute は :date 以前の日付である必要があります。',
  21. 'between' => [
  22. 'array' => ':attribute は :min から :max 個である必要があります。',
  23. 'file' => ':attribute は :min から :max KB である必要があります。',
  24. 'numeric' => ':attribute は :min から :max の間である必要があります。',
  25. 'string' => ':attribute は :min から :max 文字である必要があります。',
  26. ],
  27. 'boolean' => ':attribute は真偽値である必要があります。',
  28. 'can' => ':attribute に許可されていない値が含まれています。',
  29. 'confirmed' => ':attribute の確認が一致しません。',
  30. 'contains' => ':attribute に必須の値が含まれていません。',
  31. 'current_password' => 'パスワードが正しくありません。',
  32. 'date' => ':attribute は有効な日付である必要があります。',
  33. 'date_equals' => ':attribute は :date と等しい日付である必要があります。',
  34. 'date_format' => ':attribute は :format 形式である必要があります。',
  35. 'decimal' => ':attribute は :decimal 桁の小数である必要があります。',
  36. 'declined' => ':attribute は拒否する必要があります。',
  37. 'declined_if' => ':other が :value の場合、:attribute は拒否する必要があります。',
  38. 'different' => ':attribute と :other は異なる必要があります。',
  39. 'digits' => ':attribute は :digits 桁の数字である必要があります。',
  40. 'digits_between' => ':attribute は :min から :max 桁の数字である必要があります。',
  41. 'dimensions' => ':attribute の画像サイズが無効です。',
  42. 'distinct' => ':attribute に重複した値があります。',
  43. 'doesnt_contain' => ':attribute に以下を含めることはできません::values。',
  44. 'doesnt_end_with' => ':attribute は以下で終わってはいけません::values。',
  45. 'doesnt_start_with' => ':attribute は以下で始まってはいけません::values。',
  46. 'email' => ':attribute は有効なメールアドレスである必要があります。',
  47. 'encoding' => ':attribute は :encoding でエンコードされている必要があります。',
  48. 'ends_with' => ':attribute は以下で終わる必要があります::values。',
  49. 'enum' => '選択した :attribute は無効です。',
  50. 'exists' => '選択した :attribute は無効です。',
  51. 'extensions' => ':attribute は以下の拡張子のいずれかである必要があります::values。',
  52. 'file' => ':attribute はファイルである必要があります。',
  53. 'filled' => ':attribute には値が必要です。',
  54. 'gt' => [
  55. 'array' => ':attribute は :value 個より多い必要があります。',
  56. 'file' => ':attribute は :value KB より大きい必要があります。',
  57. 'numeric' => ':attribute は :value より大きい必要があります。',
  58. 'string' => ':attribute は :value 文字より多い必要があります。',
  59. ],
  60. 'gte' => [
  61. 'array' => ':attribute は :value 個以上である必要があります。',
  62. 'file' => ':attribute は :value KB 以上である必要があります。',
  63. 'numeric' => ':attribute は :value 以上である必要があります。',
  64. 'string' => ':attribute は :value 文字以上である必要があります。',
  65. ],
  66. 'hex_color' => ':attribute は有効な16進数カラーである必要があります。',
  67. 'image' => ':attribute は画像である必要があります。',
  68. 'in' => '選択した :attribute は無効です。',
  69. 'in_array' => ':attribute は :other に存在する必要があります。',
  70. 'in_array_keys' => ':attribute は以下のキーのいずれかを含む必要があります::values。',
  71. 'integer' => ':attribute は整数である必要があります。',
  72. 'ip' => ':attribute は有効なIPアドレスである必要があります。',
  73. 'ipv4' => ':attribute は有効なIPv4アドレスである必要があります。',
  74. 'ipv6' => ':attribute は有効なIPv6アドレスである必要があります。',
  75. 'json' => ':attribute は有効なJSON文字列である必要があります。',
  76. 'list' => ':attribute はリストである必要があります。',
  77. 'lowercase' => ':attribute は小文字である必要があります。',
  78. 'lt' => [
  79. 'array' => ':attribute は :value 個未満である必要があります。',
  80. 'file' => ':attribute は :value KB 未満である必要があります。',
  81. 'numeric' => ':attribute は :value 未満である必要があります。',
  82. 'string' => ':attribute は :value 文字未満である必要があります。',
  83. ],
  84. 'lte' => [
  85. 'array' => ':attribute は :value 個以下である必要があります。',
  86. 'file' => ':attribute は :value KB 以下である必要があります。',
  87. 'numeric' => ':attribute は :value 以下である必要があります。',
  88. 'string' => ':attribute は :value 文字以下である必要があります。',
  89. ],
  90. 'mac_address' => ':attribute は有効なMACアドレスである必要があります。',
  91. 'max' => [
  92. 'array' => ':attribute は :max 個以下である必要があります。',
  93. 'file' => ':attribute は :max KB 以下である必要があります。',
  94. 'numeric' => ':attribute は :max 以下である必要があります。',
  95. 'string' => ':attribute は :max 文字以下である必要があります。',
  96. ],
  97. 'max_digits' => ':attribute は :max 桁以下である必要があります。',
  98. 'mimes' => ':attribute は :values タイプのファイルである必要があります。',
  99. 'mimetypes' => ':attribute は :values タイプのファイルである必要があります。',
  100. 'min' => [
  101. 'array' => ':attribute は少なくとも :min 個である必要があります。',
  102. 'file' => ':attribute は少なくとも :min KB である必要があります。',
  103. 'numeric' => ':attribute は少なくとも :min である必要があります。',
  104. 'string' => ':attribute は少なくとも :min 文字である必要があります。',
  105. ],
  106. 'min_digits' => ':attribute は少なくとも :min 桁である必要があります。',
  107. 'missing' => ':attribute は存在してはいけません。',
  108. 'missing_if' => ':other が :value の場合、:attribute は存在してはいけません。',
  109. 'missing_unless' => ':other が :value でない限り、:attribute は存在してはいけません。',
  110. 'missing_with' => ':values が存在する場合、:attribute は存在してはいけません。',
  111. 'missing_with_all' => ':values がすべて存在する場合、:attribute は存在してはいけません。',
  112. 'multiple_of' => ':attribute は :value の倍数である必要があります。',
  113. 'not_in' => '選択した :attribute は無効です。',
  114. 'not_regex' => ':attribute の形式が無効です。',
  115. 'numeric' => ':attribute は数値である必要があります。',
  116. 'password' => [
  117. 'letters' => ':attribute は少なくとも1文字の英字を含む必要があります。',
  118. 'mixed' => ':attribute は少なくとも1つの大文字と1つの小文字を含む必要があります。',
  119. 'numbers' => ':attribute は少なくとも1つの数字を含む必要があります。',
  120. 'symbols' => ':attribute は少なくとも1つの記号を含む必要があります。',
  121. 'uncompromised' => ':attribute はデータ漏洩で発見されました。別の :attribute を選択してください。',
  122. ],
  123. 'present' => ':attribute は存在する必要があります。',
  124. 'present_if' => ':other が :value の場合、:attribute は存在する必要があります。',
  125. 'present_unless' => ':other が :value でない限り、:attribute は存在する必要があります。',
  126. 'present_with' => ':values が存在する場合、:attribute は存在する必要があります。',
  127. 'present_with_all' => ':values がすべて存在する場合、:attribute は存在する必要があります。',
  128. 'prohibited' => ':attribute は禁止されています。',
  129. 'prohibited_if' => ':other が :value の場合、:attribute は禁止されています。',
  130. 'prohibited_if_accepted' => ':other が受け入れられた場合、:attribute は禁止されています。',
  131. 'prohibited_if_declined' => ':other が拒否された場合、:attribute は禁止されています。',
  132. 'prohibited_unless' => ':other が :values に含まれていない限り、:attribute は禁止されています。',
  133. 'prohibits' => ':attribute が存在する場合、:other は禁止されています。',
  134. 'regex' => ':attribute の形式が無効です。',
  135. 'required' => ':attribute は必須です。',
  136. 'required_array_keys' => ':attribute は以下のキーを含む必要があります::values。',
  137. 'required_if' => ':other が :value の場合、:attribute は必須です。',
  138. 'required_if_accepted' => ':other が受け入れられた場合、:attribute は必須です。',
  139. 'required_if_declined' => ':other が拒否された場合、:attribute は必須です。',
  140. 'required_unless' => ':other が :values に含まれていない限り、:attribute は必須です。',
  141. 'required_with' => ':values が存在する場合、:attribute は必須です。',
  142. 'required_with_all' => ':values がすべて存在する場合、:attribute は必須です。',
  143. 'required_without' => ':values が存在しない場合、:attribute は必須です。',
  144. 'required_without_all' => ':values がすべて存在しない場合、:attribute は必須です。',
  145. 'same' => ':attribute と :other は一致する必要があります。',
  146. 'size' => [
  147. 'array' => ':attribute は :size 個である必要があります。',
  148. 'file' => ':attribute は :size KB である必要があります。',
  149. 'numeric' => ':attribute は :size である必要があります。',
  150. 'string' => ':attribute は :size 文字である必要があります。',
  151. ],
  152. 'starts_with' => ':attribute は以下で始まる必要があります::values。',
  153. 'string' => ':attribute は文字列である必要があります。',
  154. 'timezone' => ':attribute は有効なタイムゾーンである必要があります。',
  155. 'unique' => ':attribute は既に使用されています。',
  156. 'uploaded' => ':attribute のアップロードに失敗しました。',
  157. 'uppercase' => ':attribute は大文字である必要があります。',
  158. 'url' => ':attribute は有効なURLである必要があります。',
  159. 'ulid' => ':attribute は有効なULIDである必要があります。',
  160. 'uuid' => ':attribute は有効なUUIDである必要があります。',
  161. 'custom' => [
  162. 'attribute-name' => [
  163. 'rule-name' => 'custom-message',
  164. ],
  165. ],
  166. 'attributes' => [],
  167. ];