Nazgul
Nazgul
FFilament
Created by Nazgul on 2/13/2024 in #❓┊help
Repeater datas not showing on edit
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);
}
Inside PatientResource:
Fieldset::make()
->schema([
Repeater::make('patientDatas')
->relationship()
Fieldset::make()
->schema([
Repeater::make('patientDatas')
->relationship()
31 replies
FFilament
Created by Nazgul on 2/5/2024 in #❓┊help
Form checkbox unticked
No description
2 replies