Link to edit hasOne record from parent model

I have 2 models, Patient and HealthRecord. Patient has on HealthRecord (1-to-1 relation). When a Patient record is created, an empty HealthRecord also created in the background. Now can I open that HealthRecord to edit the data ? I need a link from Patient Table to edit the Patient's HealthReocrd
1 Reply
toeknee
toeknee2mo ago
just build a relationship onto the model?
Want results from more Discord servers?
Add your server