> */ public function rules(): array { return [ 'billable_rate' => array_merge( [ 'nullable', ], $this->moneyRules() ), ]; } public function getBillableRate(): ?int { $input = $this->input('billable_rate'); return $input !== null && $input !== 0 ? (int) $this->input('billable_rate') : null; } }