From ac75c101989900a0167dfadce3fe367a8c266311 Mon Sep 17 00:00:00 2001 From: FIQH PRATAMA Date: Wed, 5 Mar 2025 09:53:30 +0700 Subject: [PATCH] Edit FormOtherController.php delete FileType --- app/Http/Controllers/Forms/FormOtherController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Forms/FormOtherController.php b/app/Http/Controllers/Forms/FormOtherController.php index 32fc096..d491398 100644 --- a/app/Http/Controllers/Forms/FormOtherController.php +++ b/app/Http/Controllers/Forms/FormOtherController.php @@ -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') {