hasOne(MsHealthcareType::class, 'foreign_key', 'local_key'); } public function refServiceType(): HasOne { return $this->hasOne(RefServiceType::class, 'foreign_key', 'local_key'); } /** * Get the user that owns the Kiosk * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function msKioskSchedule(): BelongsTo { return $this->belongsTo(MsKioskSchedule::class, 'foreign_key', 'other_key'); } }