diff --git a/app/Http/Controllers/Forms/FormEntertainmentPresentationController.php b/app/Http/Controllers/Forms/FormEntertainmentPresentationController.php index fa18f9d..153efbe 100644 --- a/app/Http/Controllers/Forms/FormEntertainmentPresentationController.php +++ b/app/Http/Controllers/Forms/FormEntertainmentPresentationController.php @@ -125,7 +125,7 @@ class FormEntertainmentPresentationController extends Controller 'name' => 'required', 'alamat' => 'required', 'nik_or_npwp' => 'required', - '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')); @@ -293,7 +293,7 @@ class FormEntertainmentPresentationController extends Controller 'name' => 'required', 'alamat' => 'required', 'nik_or_npwp' => 'required', - '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') { diff --git a/app/Http/Controllers/Forms/FormMeetingSeminarController.php b/app/Http/Controllers/Forms/FormMeetingSeminarController.php index f76b9bf..1c23a62 100644 --- a/app/Http/Controllers/Forms/FormMeetingSeminarController.php +++ b/app/Http/Controllers/Forms/FormMeetingSeminarController.php @@ -126,9 +126,9 @@ class FormMeetingSeminarController extends Controller 'allowance' => '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_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_ankot' => ['nullable', 'file', 'max:51200'], + 'bukti_hotel' => ['nullable', 'file', 'max:51200'], ]); $currentDate = $request->tanggal; @@ -325,9 +325,9 @@ class FormMeetingSeminarController extends Controller 'allowance' => '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_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_ankot' => ['nullable', 'file', 'max:51200'], + 'bukti_hotel' => ['nullable', 'file', 'max:51200'], ]); if($form->status != 'On Progress' && $role == 'Medical Representatif') { diff --git a/app/Http/Controllers/Forms/FormOtherController.php b/app/Http/Controllers/Forms/FormOtherController.php index 35d7e9b..ef047b2 100644 --- a/app/Http/Controllers/Forms/FormOtherController.php +++ b/app/Http/Controllers/Forms/FormOtherController.php @@ -123,7 +123,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')); @@ -286,7 +286,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') { diff --git a/app/Http/Controllers/Forms/FormUpCountryController.php b/app/Http/Controllers/Forms/FormUpCountryController.php index f3f898d..323e514 100644 --- a/app/Http/Controllers/Forms/FormUpCountryController.php +++ b/app/Http/Controllers/Forms/FormUpCountryController.php @@ -137,10 +137,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')); @@ -360,10 +360,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); diff --git a/app/Http/Controllers/Forms/FormVehicleController.php b/app/Http/Controllers/Forms/FormVehicleController.php index 2a7a247..b1c0aec 100644 --- a/app/Http/Controllers/Forms/FormVehicleController.php +++ b/app/Http/Controllers/Forms/FormVehicleController.php @@ -126,7 +126,7 @@ class FormVehicleController extends Controller 'tipe_bensin' => 'required|in:pertalite,pertamax', 'nopol' => 'required', 'keterangan' => 'required', - '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')); @@ -294,7 +294,7 @@ class FormVehicleController extends Controller 'tipe_bensin' => 'required|in:pertalite,pertamax', 'nopol' => 'required', 'keterangan' => 'required', - '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') {