|
|
@ -22,13 +22,13 @@ class ValidasiUpdatePengembalian extends FormRequest |
|
|
|
public function rules(): array |
|
|
|
public function rules(): array |
|
|
|
{ |
|
|
|
{ |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
'peti_id' => 'required', |
|
|
|
'peti_id' => 'required|integer', |
|
|
|
'exit_at' => 'required|date', |
|
|
|
'exit_at' => 'required|date', |
|
|
|
'est_pengembalian' => 'required|date', |
|
|
|
'est_pengembalian' => 'required|date', |
|
|
|
'exit_warehouse' => 'required', |
|
|
|
'exit_warehouse' => 'required|integer', |
|
|
|
'enter_at' => 'required|date', |
|
|
|
'enter_at' => 'required|date', |
|
|
|
'enter_warehouse' => 'required', |
|
|
|
'enter_warehouse' => 'required|integer', |
|
|
|
'kondisi_peti' => 'required|string', |
|
|
|
'kondisi_peti_id' => 'required|integer', |
|
|
|
'status' => '', |
|
|
|
'status' => '', |
|
|
|
]; |
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
@ -37,16 +37,19 @@ class ValidasiUpdatePengembalian extends FormRequest |
|
|
|
{ |
|
|
|
{ |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
'peti_id.required' => 'Kolom peti_id wajib diisi.', |
|
|
|
'peti_id.required' => 'Kolom peti_id wajib diisi.', |
|
|
|
|
|
|
|
'peti_id.integer' => 'Kolom peti_id harus berupa angka.', |
|
|
|
'exit_at.required' => 'Kolom exit_at wajib diisi.', |
|
|
|
'exit_at.required' => 'Kolom exit_at wajib diisi.', |
|
|
|
'exit_at.date' => 'Kolom exit_at harus berupa tanggal.', |
|
|
|
'exit_at.date' => 'Kolom exit_at harus berupa tanggal.', |
|
|
|
'est_pengembalian.required' => 'Kolom est_pengembalian wajib diisi.', |
|
|
|
'est_pengembalian.required' => 'Kolom est_pengembalian wajib diisi.', |
|
|
|
'est_pengembalian.date' => 'Kolom est_pengembalian harus berupa tanggal.', |
|
|
|
'est_pengembalian.date' => 'Kolom est_pengembalian harus berupa tanggal.', |
|
|
|
'exit_warehouse.required' => 'Kolom exit_warehouse wajib diisi.', |
|
|
|
'exit_warehouse.required' => 'Kolom exit_warehouse wajib diisi.', |
|
|
|
|
|
|
|
'exit_warehouse.integer' => 'Kolom exit_warehouse harus berupa angka.', |
|
|
|
'enter_at.required' => 'Kolom enter_at wajib diisi.', |
|
|
|
'enter_at.required' => 'Kolom enter_at wajib diisi.', |
|
|
|
'enter_at.date' => 'Kolom enter_at harus berupa tanggal.', |
|
|
|
'enter_at.date' => 'Kolom enter_at harus berupa tanggal.', |
|
|
|
'enter_warehouse.required' => 'Kolom enter_warehouse wajib diisi.', |
|
|
|
'enter_warehouse.required' => 'Kolom enter_warehouse wajib diisi.', |
|
|
|
'kondisi_peti.required' => 'Kolom kondisi_peti wajib diisi.', |
|
|
|
'enter_warehouse.integer' => 'Kolom enter_warehouse harus berupa angka.', |
|
|
|
'kondisi_peti.string' => 'Kolom kondisi_peti harus berupa teks.', |
|
|
|
'kondisi_peti_id.required' => 'Kolom kondisi_peti_id wajib diisi.', |
|
|
|
|
|
|
|
'kondisi_peti_id.integer' => 'Kolom kondisi_peti_id harus berupa angka.', |
|
|
|
]; |
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|