belongsTo(Person::class, 'doctor_id', 'id'); } public function practitioner() { return $this->belongsTo(Practitioner::class, 'doctor_id', 'id'); } }