This repository has been archived by the owner on May 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
validation.php
159 lines (151 loc) · 9.6 KB
/
validation.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
| 検証言語
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
| 次の言語行には、バリデータークラスで使用されるデフォルトのエラーメッセージが含まれています。
| これらの規則の中には、サイズ規則などの複数のバージョンがあります。
| これらのメッセージのそれぞれをここで微調整してください。
*/
'accepted' => ':attribute が未承認です',
'active_url' => ':attribute は有効なURLではありません',
'after' => ':attribute は :date より後の日付にしてください',
'after_or_equal' => ':attribute は :date 以降の日付にしてください',
'alpha' => ':attribute は英字のみ有効です',
'alpha_dash' => ':attribute は「英字」「数字」「-(ダッシュ)」「_(下線)」のみ有効です',
'alpha_num' => ':attribute は「英字」「数字」のみ有効です',
'array' => ':attribute は配列タイプのみ有効です',
'before' => ':attribute は :date より前の日付にしてください',
'before_or_equal' => ':attribute は :date 以前の日付にしてください',
'between' => [
'numeric' => ':attribute は :min ~ :max までの数値まで有効です',
'file' => ':attribute は :min ~ :max キロバイトまで有効です',
'string' => ':attribute は :min ~ :max 文字まで有効です',
'array' => ':attribute は :min ~ :max 個まで有効です',
],
'boolean' => ':attribute の値は true もしくは false のみ有効です',
'confirmed' => ':attribute を確認用と一致させてください',
'date' => ':attribute を有効な日付形式にしてください',
'date_format' => ':attribute を :format 書式と一致させてください',
'different' => ':attribute を :other と違うものにしてください',
'digits' => ':attribute は :digits 桁のみ有効です',
'digits_between' => ':attribute は :min ~ :max 桁のみ有効です',
'dimensions' => ':attribute ルールに合致する画像サイズのみ有効です',
'distinct' => ':attribute に重複している値があります',
'email' => ':attribute メールアドレスの書式のみ有効です',
'exists' => ':attribute 無効な値です',
'file' => ':attribute アップロード出来ないファイルです',
'filled' => ':attribute 値を入力してください',
'gt' => [
'numeric' => ':attribute は :value より大きい必要があります。',
'file' => ':attributeは :value キロバイトより大きい必要があります。',
'string' => ':attribute は :value 文字より多い必要があります。',
'array' => ':attribute には :value 個より多くの項目が必要です。',
],
'gte' => [
'numeric' => ':attribute は :value 以上である必要があります。',
'file' => ':attribute は :value キロバイト以上である必要があります。',
'string' => ':attribute は :value 文字以上である必要があります。',
'array' => ':attribute には value 個以上の項目が必要です。',
],
'image' => ':attribute 画像は「jpg」「png」「bmp」「gif」「svg」のみ有効です',
'in' => ':attribute 無効な値です',
'in_array' => ':attribute は :other と一致する必要があります',
'integer' => ':attribute は整数のみ有効です',
'ip' => ':attribute IPアドレスの書式のみ有効です',
'ipv4' => ':attribute IPアドレス(IPv4)の書式のみ有効です',
'ipv6' => ':attribute IPアドレス(IPv6)の書式のみ有効です',
'json' => ':attribute 正しいJSON文字列のみ有効です',
'lt' => [
'numeric' => ':attribute は :value 未満である必要があります。',
'file' => ':attribute は :value キロバイト未満である必要があります。',
'string' => ':attribute は :value 文字未満である必要があります。',
'array' => ':attribute は :value 未満の項目を持つ必要があります。',
],
'lte' => [
'numeric' => ':attribute は :value 以下である必要があります。',
'file' => ':attribute は :value キロバイト以下である必要があります。',
'string' => ':attribute は :value 文字以下である必要があります。',
'array' => ':attribute は :value 以上の項目を持つ必要があります。',
],
'max' => [
'numeric' => ':attribute は :max 以下のみ有効です',
'file' => ':attribute は :max KB以下のファイルのみ有効です',
'string' => ':attribute は :max 文字以下のみ有効です',
'array' => ':attribute は :max 個以下のみ有効です',
],
'mimes' => ':attribute は :values タイプのみ有効です',
'mimetypes' => ':attribute は :values タイプのみ有効です',
'min' => [
'numeric' => ':attribute は :min 以上のみ有効です',
'file' => ':attribute は :min KB以上のファイルのみ有効です',
'string' => ':attribute は :min 文字以上のみ有効です',
'array' => ':attribute は :min 個以上のみ有効です',
],
'not_in' => ':attribute 無効な値です',
'not_regex' => 'The :attribute format is invalid.',
'numeric' => ':attribute は数字のみ有効です',
'present' => ':attribute が存在しません',
'regex' => ':attribute 無効な値です',
'required' => ':attribute は必須です',
'required_if' => ':attribute は :other が :value には必須です',
'required_unless' => ':attribute は :other が :values でなければ必須です',
'required_with' => ':attribute は :values が入力されている場合は必須です',
'required_with_all' => ':attribute は :values が入力されている場合は必須です',
'required_without' => ':attribute は :values が入力されていない場合は必須です',
'required_without_all' => ':attribute は :values が入力されていない場合は必須です',
'same' => ':attribute は :other と同じ場合のみ有効です',
'size' => [
'numeric' => ':attribute は :size のみ有効です',
'file' => ':attribute は :size KBのみ有効です',
'string' => ':attribute は :size 文字のみ有効です',
'array' => ':attribute は :size 個のみ有効です',
],
'string' => ':attribute は文字列のみ有効です',
'timezone' => ':attribute 正しいタイムゾーンのみ有効です',
'unique' => ':attribute は既に存在します',
'uploaded' => ':attribute アップロードに失敗しました',
'url' => ':attribute は正しいURL書式のみ有効です',
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
| カスタム検証言語
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
| ここでは、行に名前を付けるために "attribute.rule"という規則を使って属性のカスタム
| 検証メッセージを指定することができます。 これにより、特定の属性ルールに対して特定の
| カスタム言語行をすばやく指定できます。
|
*/
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
| カスタム検証属性
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
| 次の言語行は、属性プレースホルダを「email」ではなく「E-Mail Address」などの
| 読みやすいものと交換するために使用されます。
|
*/
'attributes' => [],
];