Repeater with hasMany relationship

I have this repeater field which is populated from a has many relationship. When adding some values, it saves correctly but delete the existent ones. It also doesn't show the current records. Any ideas?
5 Replies
toeknee
toeknee2y ago
Are you pre-loading the existing values with mount?
tesse05
tesse05OP2y ago
how to do this
toeknee
toeknee2y ago
$this->form->fill([]);
toeknee
toeknee2y ago
It depends on your whole code basis, but you might want mount using too https://filamentphp.com/docs/2.x/admin/pages/actions#filling-default-data
Filament
Actions - Pages - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
tesse05
tesse05OP2y ago
oh thats perfect. thx!
Want results from more Discord servers?
Add your server