Edit FormUpCountryController.php remove FileType
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user