Edit FormOtherController.php delete FileType

This commit is contained in:
FIQH PRATAMA
2025-03-05 09:53:30 +07:00
parent 278fc3741d
commit ac75c10198
@@ -122,7 +122,7 @@ class FormOtherController extends Controller
'tanggal' => 'required|date',
'keterangan' => 'required',
'total' => 'required|numeric|min:1',
'bukti_total' => ['nullable', 'file', 'max:51200', new FileType(['php', 'exe', 'js', 'sh', 'bat', 'exe', 'sh', 'php', 'vbs'])],
'bukti_total' => ['nullable', 'file', 'max:51200'],
]);
$startDate = date('Y-m-' . env('STARTING_DATE'));
@@ -278,7 +278,7 @@ class FormOtherController extends Controller
'tanggal' => 'required|date',
'keterangan' => 'required',
'total' => 'required|numeric|min:1|max:' . BudgetHelper::getAvailableBudget($cabang_id),
'bukti_total' => ['nullable', 'file', 'max:51200', new FileType(['php', 'exe', 'js', 'sh', 'bat', 'exe', 'sh', 'php', 'vbs'])],
'bukti_total' => ['nullable', 'file', 'max:51200'],
]);
if($form->status != 'On Progress' && $role == 'Medical Representatif') {