forked from alexjustesen/speedtest-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidation.php
More file actions
230 lines (223 loc) · 11.4 KB
/
validation.php
File metadata and controls
230 lines (223 loc) · 11.4 KB
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<?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 alanı kabul edilmelidir.',
'accepted_if' => ':attribute alanı, :other değeri :value olduğunda kabul edilmelidir.',
'active_url' => ':attribute alanı geçerli bir URL olmalıdır.',
'after' => ':attribute alanı :date değerinden sonraki bir tarih olmalıdır.',
'after_or_equal' => ':attribute alanı :date tarihinden sonra veya ona eşit bir tarih olmalıdır.',
'alpha' => ':attribute alanı yalnızca harf içermelidir.',
'alpha_dash' => ':attribute alanı yalnızca harf, rakam, tire(-) ve alt çizgi(_) içermelidir.',
'alpha_num' => ':attribute alanı yalnızca harf ve rakamlardan oluşmalıdır.',
'array' => ':attribute alanı bir dizi olmalıdır.',
'ascii' => ':attribute alanı yalnızca tek baytlık alfanümerik karakterler ve semboller içermelidir.',
'before' => ':attribute alanı :date değerinden önceki bir tarih olmalıdır.',
'before_or_equal' => ':attribute alanı :date tarihinden önce veya ona eşit bir tarih olmalıdır.',
'between' => [
'array' => ':attribute :min ile :max öğe arasında olmalıdır.',
'file' => ':attribute :min ile :max kilobayt arasında olmalıdır.',
'numeric' => ':attribute :min ile :max arasında olmalıdır.',
'string' => ':attribute :min ile :max karakter arasında olmalıdır.',
],
'boolean' => ':attribute alanı doğru veya yanlış olmalıdır.',
'can' => ':attribute alanı yetkisiz bir değer içeriyor.',
'confirmed' => ':attribute doğrulaması eşleşmiyor.',
'current_password' => 'Şifre yanlış.',
'date' => ':attribute geçerli bir tarih olmalıdır.',
'date_equals' => ':attribute :date tarihine eşit bir tarih olmalıdır.',
'date_format' => ':attribute :format formatıyla eşleşmelidir.',
'decimal' => ':attribute :decimal ondalık basamak içermelidir.',
'declined' => ':attribute reddedilmelidir.',
'declined_if' => ':attribute, :other :value olduğunda reddedilmelidir.',
'different' => ':attribute ve :other farklı olmalıdır.',
'digits' => ':attribute :digits basamaklı olmalıdır.',
'digits_between' => ':attribute :min ile :max basamak arasında olmalıdır.',
'dimensions' => ':attribute geçersiz resim boyutlarına sahiptir.',
'distinct' => ':attribute alanında yinelenen bir değer var.',
'doesnt_end_with' => ':attribute şu değerlerden biriyle bitmemelidir: :values.',
'doesnt_start_with' => ':attribute şu değerlerden biriyle başlamamalıdır: :values.',
'email' => ':attribute geçerli bir e-posta adresi olmalıdır.',
'ends_with' => ':attribute şu değerlerden biriyle bitmelidir: :values.',
'enum' => 'Seçilen :attribute geçersiz.',
'exists' => 'Seçilen :attribute geçersiz.',
'file' => ':attribute bir dosya olmalıdır.',
'filled' => ':attribute bir değer içermelidir.',
'gt' => [
'array' => ':attribute :value öğeden fazla olmalıdır.',
'file' => ':attribute :value kilobayttan büyük olmalıdır.',
'numeric' => ':attribute :value değerinden büyük olmalıdır.',
'string' => ':attribute :value karakterden uzun olmalıdır.',
],
'gte' => [
'array' => ':attribute :value veya daha fazla öğe içermelidir.',
'file' => ':attribute :value kilobayt veya daha büyük olmalıdır.',
'numeric' => ':attribute :value değerine eşit veya daha büyük olmalıdır.',
'string' => ':attribute :value karakter veya daha fazla olmalıdır.',
],
'image' => ':attribute bir resim olmalıdır.',
'in' => 'Seçilen :attribute geçersiz.',
'in_array' => ':attribute, :other içinde mevcut olmalıdır.',
'integer' => ':attribute bir tam sayı olmalıdır.',
'ip' => ':attribute geçerli bir IP adresi olmalıdır.',
'ipv4' => ':attribute geçerli bir IPv4 adresi olmalıdır.',
'ipv6' => ':attribute geçerli bir IPv6 adresi olmalıdır.',
'json' => ':attribute geçerli bir JSON metni olmalıdır.',
'lowercase' => ':attribute küçük harflerden oluşmalıdır.',
'lt' => [
'array' => ':attribute :value öğeden az olmalıdır.',
'file' => ':attribute :value kilobayttan küçük olmalıdır.',
'numeric' => ':attribute :value değerinden küçük olmalıdır.',
'string' => ':attribute :value karakterden kısa olmalıdır.',
],
'lte' => [
'array' => ':attribute :value öğeden fazla olmamalıdır.',
'file' => ':attribute :value kilobayt veya daha az olmalıdır.',
'numeric' => ':attribute :value değerine eşit veya daha küçük olmalıdır.',
'string' => ':attribute :value karakter veya daha az olmalıdır.',
],
'mac_address' => ':attribute geçerli bir MAC adresi olmalıdır.',
'max' => [
'array' => ':attribute :max öğeden fazla olmamalıdır.',
'file' => ':attribute :max kilobayttan büyük olmamalıdır.',
'numeric' => ':attribute :max değerinden büyük olmamalıdır.',
'string' => ':attribute :max karakterden uzun olmamalıdır.',
],
'max_digits' => ':attribute :max basamaktan fazla olmamalıdır.',
'mimes' => ':attribute şu türde bir dosya olmalıdır: :values.',
'mimetypes' => ':attribute şu türde bir dosya olmalıdır: :values.',
'min' => [
'array' => ':attribute en az :min öğe içermelidir.',
'file' => ':attribute en az :min kilobayt olmalıdır.',
'numeric' => ':attribute en az :min olmalıdır.',
'string' => ':attribute en az :min karakter olmalıdır.',
],
'min_digits' => ':attribute en az :min basamak içermelidir.',
'missing' => ':attribute eksik olmalıdır.',
'missing_if' => ':attribute, :other :value olduğunda eksik olmalıdır.',
'missing_unless' => ':attribute, :other :value değilse eksik olmalıdır.',
'missing_with' => ':attribute, :values mevcut olduğunda eksik olmalıdır.',
'missing_with_all' => ':attribute, :values mevcut olduğunda eksik olmalıdır.',
'multiple_of' => ':attribute :value katı olmalıdır.',
'not_in' => 'Seçilen :attribute geçersiz.',
'not_regex' => ':attribute formatı geçersiz.',
'numeric' => ':attribute bir sayı olmalıdır.',
'password' => [
'letters' => ':attribute en az bir harf içermelidir.',
'mixed' => ':attribute en az bir büyük harf ve bir küçük harf içermelidir.',
'numbers' => ':attribute en az bir rakam içermelidir.',
'symbols' => ':attribute en az bir sembol içermelidir.',
'uncompromised' => 'Verilen :attribute bir veri ihlalinde tespit edilmiştir. Lütfen farklı bir :attribute seçin.',
],
'present' => ':attribute mevcut olmalıdır.',
'prohibited' => ':attribute yasaktır.',
'prohibited_if' => ':attribute, :other :value olduğunda yasaktır.',
'prohibited_unless' => ':attribute, :other :values içinde olmadıkça yasaktır.',
'prohibits' => ':attribute, :other alanının mevcut olmasını yasaklar.',
'regex' => ':attribute formatı geçersiz.',
'required' => ':attribute alanı gereklidir.',
'required_array_keys' => ':attribute şu anahtarları içermelidir: :values.',
'required_if' => ':attribute, :other :value olduğunda gereklidir.',
'required_if_accepted' => ':attribute, :other kabul edildiğinde gereklidir.',
'required_unless' => ':attribute, :other :values içinde olmadıkça gereklidir.',
'required_with' => ':attribute, :values mevcut olduğunda gereklidir.',
'required_with_all' => ':attribute, :values mevcut olduğunda gereklidir.',
'required_without' => ':attribute, :values mevcut değilse gereklidir.',
'required_without_all' => ':attribute, :values hiçbirisi mevcut değilse gereklidir.',
'same' => ':attribute, :other ile eşleşmelidir.',
'size' => [
'array' => ':attribute :size öğe içermelidir.',
'file' => ':attribute :size kilobayt olmalıdır.',
'numeric' => ':attribute :size olmalıdır.',
'string' => ':attribute :size karakter olmalıdır.',
],
'starts_with' => ':attribute şu değerlerden biriyle başlamalıdır: :values.',
'string' => ':attribute bir metin olmalıdır.',
'timezone' => ':attribute geçerli bir zaman dilimi olmalıdır.',
'unique' => ':attribute zaten alınmış.',
'uploaded' => ':attribute yüklenemedi.',
'uppercase' => ':attribute büyük harflerden oluşmalıdır.',
'url' => ':attribute geçerli bir URL olmalıdır.',
'ulid' => ':attribute geçerli bir ULID olmalıdır.',
'uuid' => ':attribute geçerli bir UUID olmalıdır.',
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap our attribute placeholder
| with something more reader friendly such as "E-Mail Address" instead
| of "email". This simply helps us make our message more expressive.
|
*/
'attributes' => [
'address' => 'adres',
'age' => 'yaş',
'body' => 'içerik',
'cell' => 'hücre',
'city' => 'şehir',
'country' => 'ülke',
'date' => 'tarih',
'day' => 'gün',
'excerpt' => 'özet',
'first_name' => 'ad',
'gender' => 'cinsiyet',
'marital_status' => 'medeni hal',
'profession' => 'meslek',
'nationality' => 'uyruk',
'hour' => 'saat',
'last_name' => 'soyad',
'message' => 'mesaj',
'minute' => 'dakika',
'mobile' => 'cep telefonu',
'month' => 'ay',
'name' => 'isim',
'zipcode' => 'posta kodu',
'company_name' => 'şirket adı',
'neighborhood' => 'mahalle',
'number' => 'numara',
'password' => 'şifre',
'phone' => 'telefon',
'second' => 'saniye',
'sex' => 'cinsiyet',
'state' => 'eyalet',
'street' => 'sokak',
'subject' => 'konu',
'text' => 'metin',
'time' => 'zaman',
'title' => 'başlık',
'username' => 'kullanıcı adı',
'year' => 'yıl',
'description' => 'açıklama',
'password_confirmation' => 'şifre doğrulama',
'current_password' => 'mevcut şifre',
'complement' => 'ek bilgi',
'modality' => 'mod',
'category' => 'kategori',
'blood_type' => 'kan grubu',
'birth_date' => 'doğum tarihi',
],
];