fix(surveyor): perbaikkan upload foto data pembanding
This commit is contained in:
@@ -1356,6 +1356,7 @@ class SurveyorController extends Controller
|
||||
try {
|
||||
DB::beginTransaction();
|
||||
|
||||
// dd($request->all());
|
||||
$maxSize = getMaxFileSize('Foto');
|
||||
$validator = $request->validate([
|
||||
'permohonan_id' => 'required|exists:permohonan,id',
|
||||
@@ -1363,8 +1364,6 @@ class SurveyorController extends Controller
|
||||
'dokument_id' => 'required',
|
||||
'name_foto_objek' => 'nullable|string',
|
||||
'nomor_registrasi' => 'required|string',
|
||||
'foto_objek' => 'nullable|jpeg|png|jpg|gif|svg|max:'.$maxSize,
|
||||
'foto_objek_pembanding.*' => 'nullable|jpeg|png|jpg|gif|svg|max:'.$maxSize,
|
||||
]);
|
||||
|
||||
$tanahBangunanTypes = ['KAPAL', 'PESAWAT', 'KENDARAAN', 'ALAT BERAT', 'MESIN'];
|
||||
|
||||
Reference in New Issue
Block a user