π”…π”˜π”‡π”ž
π”…π”˜π”‡π”ž
FFilament
Created by π”…π”˜π”‡π”ž on 6/12/2024 in #β“β”Šhelp
JSON keys get overriden if they are not used in a form.
I appreciate the reply! I may look into making an issue for it and see if I can make a PR for it. For future people looking at this, this is how I solved it:
->mutateFormDataUsing(function ($record, array $data): array {
$data['custom_properties'] = array_replace($record->custom_properties, $data['custom_properties']);

return $data;
}),
->mutateFormDataUsing(function ($record, array $data): array {
$data['custom_properties'] = array_replace($record->custom_properties, $data['custom_properties']);

return $data;
}),
7 replies
FFilament
Created by π”…π”˜π”‡π”ž on 6/12/2024 in #β“β”Šhelp
JSON keys get overriden if they are not used in a form.
I think this could be labeled as a bug. I can't imagine a usecase where someone would be editing a specific key in an array and would want the entire array to be overriden.
7 replies
FFilament
Created by Marcelo Andrade on 5/31/2024 in #β“β”Šhelp
Is it possible to render a RepeatableEntry as a table, without duplicating the labels
3 replies