Feature #14 : Dokumen Jaminan
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
'name' => 'required',
|
||||
'registered_at' => 'nullable|date',
|
||||
'npwp' => 'nullable|string|max:16',
|
||||
'nomor_id' => 'nullable|string|max:16',
|
||||
'email' => 'nullable|email',
|
||||
'phone' => 'nullable|string|max:15',
|
||||
'address' => 'nullable|string',
|
||||
@@ -31,9 +30,9 @@
|
||||
];
|
||||
|
||||
if ($this->method() == 'PUT') {
|
||||
$rules['cif'] = 'required|unique:debitures,cif,' . $this->id;
|
||||
$rules['cif'] = 'nullable|unique:debitures,cif,' . $this->id;
|
||||
} else {
|
||||
$rules['cif'] = 'required|unique:debitures,cif';
|
||||
$rules['cif'] = 'nullable|unique:debitures,cif';
|
||||
}
|
||||
|
||||
return $rules;
|
||||
|
||||
Reference in New Issue
Block a user