Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 86cdeba

Browse files
committed
add missing tag (dimensions,distinct,in_array,required_unless)
1 parent 0362ce2 commit 86cdeba

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

src/ms/validation.php

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@
3232
'date' => ':attribute bukan tarikh yang sah.',
3333
'date_format' => ':attribute tidak mengikut format :format.',
3434
'different' => ':attribute dan :other mesti berlainan.',
35+
'dimensions' => ':attribute tidak sah',
3536
'digits' => ':attribute mesti :digits.',
3637
'digits_between' => ':attribute mesti mengandungi antara :min dan :max digits.',
38+
'distinct' => ':attribute adalah nilai yang berulang',
3739
'email' => ':attribute tidak sah.',
3840
'exists' => ':attribute tidak sah.',
3941
'filled' => ':attribute diperlukan.',
4042
'image' => ':attribute mesti imej.',
4143
'in' => ':attribute tidak sah.',
44+
'in_array' => ':attribute tidak wujud dalam :other.',
4245
'integer' => ':attribute mesti integer.',
4346
'ip' => ':attribute mesti alamat IP yang sah.',
4447
'json' => ':attribute mesti JSON yang sah.',
@@ -57,9 +60,11 @@
5760
],
5861
'not_in' => ':attribute tidak sah.',
5962
'numeric' => ':attribute mesti nombor.',
63+
'present' => ':attribute mesti wujud.',
6064
'regex' => ':attribute format tidak sah.',
6165
'required' => 'Ruangan :attribute diperlukan.',
6266
'required_if' => 'Ruangan :attribute diperlukan bila :other sama dengan :value.',
67+
'required_unless' => 'Ruangan :attribute diperlukan sekiranya :other ada dalam :values.',
6368
'required_with' => 'Ruangan :attribute diperlukan bila :values wujud.',
6469
'required_with_all' => 'Ruangan :attribute diperlukan bila :values wujud.',
6570
'required_without' => 'Ruangan :attribute diperlukan bila :values tidak wujud.',
@@ -71,7 +76,7 @@
7176
'string' => 'Saiz :attribute mesti :size aksara.',
7277
'array' => 'Saiz :attribute mesti mengandungi :size perkara.',
7378
],
74-
'string' => ':attribute mesti perkataan.',
79+
'string' => ':attribute mesti aksara.',
7580
'timezone' => ':attribute mesti zon masa yang sah.',
7681
'unique' => ':attribute telah wujud.',
7782
'url' => ':attribute format tidak sah.',
@@ -105,6 +110,22 @@
105110
*/
106111

107112
'attributes' => [
108-
//
113+
'name' => 'nama',
114+
'email' => 'alamat emel',
115+
'password' => 'kata laluan',
116+
'dun_id' => 'Dewan Undangan Negeri',
117+
'dun' => 'Dewan Undangan Negeri',
118+
'parlimen_id' => 'parlimen',
119+
'mukim_id' => 'mukim',
120+
'district' => 'daerah',
121+
'noJk' => 'No JK',
122+
'idMarris' => 'Id Marris',
123+
'road' => 'nama jalan',
124+
'typeOfWork' => 'jenis jalan',
125+
'workScope' => 'skop kerja',
126+
'cost' => 'anggaran kos untuk kerja',
127+
'length' => 'panjang jalan',
128+
'shortCode' => 'singkatan nama daerah',
129+
109130
],
110131
];

0 commit comments

Comments
 (0)