Hey, i'm trying to setup a repeater inside a form (Patient), when i save the form, all datas are created in database even the relationship datas. But when i try to edit the patient, the reapeater datas are not showing. What am i doing wrong? Inside Patient model :
public function patientDatas(): HasMany { return $this->hasMany(PatientData::class); }
public function patientDatas(): HasMany { return $this->hasMany(PatientData::class); }
Inside PatientData model:
public function patient(): BelongsTo { return $this->belongsTo(Patient::class); }
public function patient(): BelongsTo { return $this->belongsTo(Patient::class); }