xoshbin
xoshbin
FFilament
Created by xoshbin on 11/21/2024 in #❓┊help
mutateRelationshipDataBeforeCreateUsing in Filament's Repeater supposed to return an array of items?
So it looks like there is no need to iterate through the data https://github.com/filamentphp/filament/discussions/4485#discussioncomment-3851865 ->mutateRelationshipDataBeforeCreateUsing(function (array $data): array { $tenant = Filament::getTenant(); $data['organization_id'] = $tenant->id; return $data; })
6 replies
FFilament
Created by xoshbin on 11/21/2024 in #❓┊help
mutateRelationshipDataBeforeCreateUsing in Filament's Repeater supposed to return an array of items?
mutateRelationshipDataBeforeAddUsing() should be chained onto the Repeater field directly https://github.com/filamentphp/filament/issues/5775#issuecomment-1445288042
6 replies