belongsTo(Patient::class, 'patient_id', 'id'); } public function plan() { return $this->belongsTo(Plan::class, 'plan_id'); } }