merge($this->stripCurrencyDot($this->all(), 'amount')); } public function rules(): array { return [ 'type' => ['required', Rule::in(PayrollAdjustmentType::values())], 'amount' => ['required', 'integer', 'min:1'], 'description' => ['required', 'string', 'max:100'], 'attendance_id' => ['nullable', 'integer', 'exists:attendances,id'], ]; } public function attributes(): array { return [ 'type' => 'jenis', 'amount' => 'jumlah', 'description' => 'keterangan', 'attendance_id' => 'presensi', ]; } }