hasOne(MsPatient::class, 'foreign_key', 'local_key'); } /** * Get the user associated with the MsPatientPaymentType * * @return \Illuminate\Database\Eloquent\Relations\HasOne */ public function refPaymentType(): HasOne { return $this->hasOne(RefPaymentType::class, 'foreign_key', 'local_key'); } }