belongsTo(Doctor::class, 'doctor_id', 'id'); } public function patient() { return $this->belongsTo(Patient::class); } }