*/ public function rules() : array { return [ 'tanggal_pembayaran' => 'required|date', 'pembayaran_debitur' => 'required|numeric', 'subrogasi_jamkrindo' => 'required|numeric', 'pendapatan_bank' => 'required|numeric', 'keterangan' => 'nullable|string|max:255', ]; } public function ignored() : string { return $this->id; } protected function prepareForValidation() { $this->merge([ 'nomor_pinjaman' => request()->segment(3), ]); } }