From f41d4791651763d1f5f8906a9b6eadd3d41b1f88 Mon Sep 17 00:00:00 2001 From: FIQH PRATAMA Date: Wed, 5 Mar 2025 09:55:27 +0700 Subject: [PATCH] Edit FormUpCountryController.php remove FileType --- .../Forms/FormUpCountryController.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Http/Controllers/Forms/FormUpCountryController.php b/app/Http/Controllers/Forms/FormUpCountryController.php index c439a23..7a2e994 100644 --- a/app/Http/Controllers/Forms/FormUpCountryController.php +++ b/app/Http/Controllers/Forms/FormUpCountryController.php @@ -136,10 +136,10 @@ class FormUpCountryController extends Controller 'transport_dalkot' => 'nullable|numeric', 'transport_ankot' => 'nullable|numeric', 'hotel' => 'nullable|numeric', - 'bukti_allowance' => ['nullable', 'file', 'max:51200', new FileType(['php', 'exe', 'js', 'sh', 'bat', 'exe', 'sh', 'php', 'vbs'])], - 'bukti_transport_dalkot' => ['nullable', 'file', 'max:51200', new FileType(['php', 'exe', 'js', 'sh', 'bat', 'exe', 'sh', 'php', 'vbs'])], - 'bukti_transport_ankot' => ['nullable', 'file', 'max:51200', new FileType(['php', 'exe', 'js', 'sh', 'bat', 'exe', 'sh', 'php', 'vbs'])], - 'bukti_hotel' => ['nullable', 'file', 'max:51200', new FileType(['php', 'exe', 'js', 'sh', 'bat', 'exe', 'sh', 'php', 'vbs'])], + 'bukti_allowance' => ['nullable', 'file', 'max:51200'], + 'bukti_transport_dalkot' => ['nullable', 'file', 'max:51200'], + 'bukti_transport_ankot' => ['nullable', 'file', 'max:51200'], + 'bukti_hotel' => ['nullable', 'file', 'max:51200'], ]); $startDate = date('Y-m-' . env('STARTING_DATE')); @@ -352,10 +352,10 @@ class FormUpCountryController extends Controller 'transport_dalkot' => 'nullable|numeric', 'transport_ankot' => 'nullable|numeric', 'hotel' => 'nullable|numeric', - 'bukti_allowance' => ['nullable', 'file', 'max:51200', new FileType(['php', 'exe', 'js', 'sh', 'bat', 'exe', 'sh', 'php', 'vbs'])], - 'bukti_transport_dalkot' => ['nullable', 'file', 'max:51200', new FileType(['php', 'exe', 'js', 'sh', 'bat', 'exe', 'sh', 'php', 'vbs'])], - 'bukti_transport_ankot' => ['nullable', 'file', 'max:51200', new FileType(['php', 'exe', 'js', 'sh', 'bat', 'exe', 'sh', 'php', 'vbs'])], - 'bukti_hotel' => ['nullable', 'file', 'max:51200', new FileType(['php', 'exe', 'js', 'sh', 'bat', 'exe', 'sh', 'php', 'vbs'])], + 'bukti_allowance' => ['nullable', 'file', 'max:51200'], + 'bukti_transport_dalkot' => ['nullable', 'file', 'max:51200'], + 'bukti_transport_ankot' => ['nullable', 'file', 'max:51200'], + 'bukti_hotel' => ['nullable', 'file', 'max:51200'], ]); $form = FormUpCountry::findOrfail($id);