171 lines
12 KiB
PHP
171 lines
12 KiB
PHP
<?php
|
|
|
|
return [
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| バリデーション文言
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
'accepted' => ':attribute を受け入れる必要があります。',
|
|
'accepted_if' => ':other が :value の場合、:attribute を受け入れる必要があります。',
|
|
'active_url' => ':attribute は有効なURLである必要があります。',
|
|
'after' => ':attribute は :date より後の日付である必要があります。',
|
|
'after_or_equal' => ':attribute は :date 以降の日付である必要があります。',
|
|
'alpha' => ':attribute は英字のみを含む必要があります。',
|
|
'alpha_dash' => ':attribute は英字、数字、ハイフン、アンダースコアのみを含む必要があります。',
|
|
'alpha_num' => ':attribute は英字と数字のみを含む必要があります。',
|
|
'any_of' => ':attribute は無効です。',
|
|
'array' => ':attribute は配列である必要があります。',
|
|
'ascii' => ':attribute はASCII文字のみを含む必要があります。',
|
|
'before' => ':attribute は :date より前の日付である必要があります。',
|
|
'before_or_equal' => ':attribute は :date 以前の日付である必要があります。',
|
|
'between' => [
|
|
'array' => ':attribute は :min から :max 個である必要があります。',
|
|
'file' => ':attribute は :min から :max KB である必要があります。',
|
|
'numeric' => ':attribute は :min から :max の間である必要があります。',
|
|
'string' => ':attribute は :min から :max 文字である必要があります。',
|
|
],
|
|
'boolean' => ':attribute は真偽値である必要があります。',
|
|
'can' => ':attribute に許可されていない値が含まれています。',
|
|
'confirmed' => ':attribute の確認が一致しません。',
|
|
'contains' => ':attribute に必須の値が含まれていません。',
|
|
'current_password' => 'パスワードが正しくありません。',
|
|
'date' => ':attribute は有効な日付である必要があります。',
|
|
'date_equals' => ':attribute は :date と等しい日付である必要があります。',
|
|
'date_format' => ':attribute は :format 形式である必要があります。',
|
|
'decimal' => ':attribute は :decimal 桁の小数である必要があります。',
|
|
'declined' => ':attribute は拒否する必要があります。',
|
|
'declined_if' => ':other が :value の場合、:attribute は拒否する必要があります。',
|
|
'different' => ':attribute と :other は異なる必要があります。',
|
|
'digits' => ':attribute は :digits 桁の数字である必要があります。',
|
|
'digits_between' => ':attribute は :min から :max 桁の数字である必要があります。',
|
|
'dimensions' => ':attribute の画像サイズが無効です。',
|
|
'distinct' => ':attribute に重複した値があります。',
|
|
'doesnt_contain' => ':attribute に以下を含めることはできません::values。',
|
|
'doesnt_end_with' => ':attribute は以下で終わってはいけません::values。',
|
|
'doesnt_start_with' => ':attribute は以下で始まってはいけません::values。',
|
|
'email' => ':attribute は有効なメールアドレスである必要があります。',
|
|
'encoding' => ':attribute は :encoding でエンコードされている必要があります。',
|
|
'ends_with' => ':attribute は以下で終わる必要があります::values。',
|
|
'enum' => '選択した :attribute は無効です。',
|
|
'exists' => '選択した :attribute は無効です。',
|
|
'extensions' => ':attribute は以下の拡張子のいずれかである必要があります::values。',
|
|
'file' => ':attribute はファイルである必要があります。',
|
|
'filled' => ':attribute には値が必要です。',
|
|
'gt' => [
|
|
'array' => ':attribute は :value 個より多い必要があります。',
|
|
'file' => ':attribute は :value KB より大きい必要があります。',
|
|
'numeric' => ':attribute は :value より大きい必要があります。',
|
|
'string' => ':attribute は :value 文字より多い必要があります。',
|
|
],
|
|
'gte' => [
|
|
'array' => ':attribute は :value 個以上である必要があります。',
|
|
'file' => ':attribute は :value KB 以上である必要があります。',
|
|
'numeric' => ':attribute は :value 以上である必要があります。',
|
|
'string' => ':attribute は :value 文字以上である必要があります。',
|
|
],
|
|
'hex_color' => ':attribute は有効な16進数カラーである必要があります。',
|
|
'image' => ':attribute は画像である必要があります。',
|
|
'in' => '選択した :attribute は無効です。',
|
|
'in_array' => ':attribute は :other に存在する必要があります。',
|
|
'in_array_keys' => ':attribute は以下のキーのいずれかを含む必要があります::values。',
|
|
'integer' => ':attribute は整数である必要があります。',
|
|
'ip' => ':attribute は有効なIPアドレスである必要があります。',
|
|
'ipv4' => ':attribute は有効なIPv4アドレスである必要があります。',
|
|
'ipv6' => ':attribute は有効なIPv6アドレスである必要があります。',
|
|
'json' => ':attribute は有効なJSON文字列である必要があります。',
|
|
'list' => ':attribute はリストである必要があります。',
|
|
'lowercase' => ':attribute は小文字である必要があります。',
|
|
'lt' => [
|
|
'array' => ':attribute は :value 個未満である必要があります。',
|
|
'file' => ':attribute は :value KB 未満である必要があります。',
|
|
'numeric' => ':attribute は :value 未満である必要があります。',
|
|
'string' => ':attribute は :value 文字未満である必要があります。',
|
|
],
|
|
'lte' => [
|
|
'array' => ':attribute は :value 個以下である必要があります。',
|
|
'file' => ':attribute は :value KB 以下である必要があります。',
|
|
'numeric' => ':attribute は :value 以下である必要があります。',
|
|
'string' => ':attribute は :value 文字以下である必要があります。',
|
|
],
|
|
'mac_address' => ':attribute は有効なMACアドレスである必要があります。',
|
|
'max' => [
|
|
'array' => ':attribute は :max 個以下である必要があります。',
|
|
'file' => ':attribute は :max KB 以下である必要があります。',
|
|
'numeric' => ':attribute は :max 以下である必要があります。',
|
|
'string' => ':attribute は :max 文字以下である必要があります。',
|
|
],
|
|
'max_digits' => ':attribute は :max 桁以下である必要があります。',
|
|
'mimes' => ':attribute は :values タイプのファイルである必要があります。',
|
|
'mimetypes' => ':attribute は :values タイプのファイルである必要があります。',
|
|
'min' => [
|
|
'array' => ':attribute は少なくとも :min 個である必要があります。',
|
|
'file' => ':attribute は少なくとも :min KB である必要があります。',
|
|
'numeric' => ':attribute は少なくとも :min である必要があります。',
|
|
'string' => ':attribute は少なくとも :min 文字である必要があります。',
|
|
],
|
|
'min_digits' => ':attribute は少なくとも :min 桁である必要があります。',
|
|
'missing' => ':attribute は存在してはいけません。',
|
|
'missing_if' => ':other が :value の場合、:attribute は存在してはいけません。',
|
|
'missing_unless' => ':other が :value でない限り、:attribute は存在してはいけません。',
|
|
'missing_with' => ':values が存在する場合、:attribute は存在してはいけません。',
|
|
'missing_with_all' => ':values がすべて存在する場合、:attribute は存在してはいけません。',
|
|
'multiple_of' => ':attribute は :value の倍数である必要があります。',
|
|
'not_in' => '選択した :attribute は無効です。',
|
|
'not_regex' => ':attribute の形式が無効です。',
|
|
'numeric' => ':attribute は数値である必要があります。',
|
|
'password' => [
|
|
'letters' => ':attribute は少なくとも1文字の英字を含む必要があります。',
|
|
'mixed' => ':attribute は少なくとも1つの大文字と1つの小文字を含む必要があります。',
|
|
'numbers' => ':attribute は少なくとも1つの数字を含む必要があります。',
|
|
'symbols' => ':attribute は少なくとも1つの記号を含む必要があります。',
|
|
'uncompromised' => ':attribute はデータ漏洩で発見されました。別の :attribute を選択してください。',
|
|
],
|
|
'present' => ':attribute は存在する必要があります。',
|
|
'present_if' => ':other が :value の場合、:attribute は存在する必要があります。',
|
|
'present_unless' => ':other が :value でない限り、:attribute は存在する必要があります。',
|
|
'present_with' => ':values が存在する場合、:attribute は存在する必要があります。',
|
|
'present_with_all' => ':values がすべて存在する場合、:attribute は存在する必要があります。',
|
|
'prohibited' => ':attribute は禁止されています。',
|
|
'prohibited_if' => ':other が :value の場合、:attribute は禁止されています。',
|
|
'prohibited_if_accepted' => ':other が受け入れられた場合、:attribute は禁止されています。',
|
|
'prohibited_if_declined' => ':other が拒否された場合、:attribute は禁止されています。',
|
|
'prohibited_unless' => ':other が :values に含まれていない限り、:attribute は禁止されています。',
|
|
'prohibits' => ':attribute が存在する場合、:other は禁止されています。',
|
|
'regex' => ':attribute の形式が無効です。',
|
|
'required' => ':attribute は必須です。',
|
|
'required_array_keys' => ':attribute は以下のキーを含む必要があります::values。',
|
|
'required_if' => ':other が :value の場合、:attribute は必須です。',
|
|
'required_if_accepted' => ':other が受け入れられた場合、:attribute は必須です。',
|
|
'required_if_declined' => ':other が拒否された場合、:attribute は必須です。',
|
|
'required_unless' => ':other が :values に含まれていない限り、:attribute は必須です。',
|
|
'required_with' => ':values が存在する場合、:attribute は必須です。',
|
|
'required_with_all' => ':values がすべて存在する場合、:attribute は必須です。',
|
|
'required_without' => ':values が存在しない場合、:attribute は必須です。',
|
|
'required_without_all' => ':values がすべて存在しない場合、:attribute は必須です。',
|
|
'same' => ':attribute と :other は一致する必要があります。',
|
|
'size' => [
|
|
'array' => ':attribute は :size 個である必要があります。',
|
|
'file' => ':attribute は :size KB である必要があります。',
|
|
'numeric' => ':attribute は :size である必要があります。',
|
|
'string' => ':attribute は :size 文字である必要があります。',
|
|
],
|
|
'starts_with' => ':attribute は以下で始まる必要があります::values。',
|
|
'string' => ':attribute は文字列である必要があります。',
|
|
'timezone' => ':attribute は有効なタイムゾーンである必要があります。',
|
|
'unique' => ':attribute は既に使用されています。',
|
|
'uploaded' => ':attribute のアップロードに失敗しました。',
|
|
'uppercase' => ':attribute は大文字である必要があります。',
|
|
'url' => ':attribute は有効なURLである必要があります。',
|
|
'ulid' => ':attribute は有効なULIDである必要があります。',
|
|
'uuid' => ':attribute は有効なUUIDである必要があります。',
|
|
|
|
'custom' => [
|
|
'attribute-name' => [
|
|
'rule-name' => 'custom-message',
|
|
],
|
|
],
|
|
|
|
'attributes' => [],
|
|
];
|