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
Are you pre-loading the existing values with mount?
how to do this
$this->form->fill([]);
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.
oh thats perfect. thx!