filament/filament
v3.2.102
v11.0.0
v3.0.0
PHP 8.3.0
A hidden Placeholder
inside a Section
that has a relationship and has "manual" saving, will send null as a value.
The placeholder to not be sent (even as null
)
It requires:
Section
with a relationshipdehydrated()
and mutateRelationshipDataBeforeSaveUsing(fn () => [])
Placeholder
having hidden()
Then in handleRecordUpdate()
, the $data
object will have something like $data['relationshipName']['placeholderName'] = null
https://github.com/andy-UKC/filament-issue-placholder-data-sent-on-hidden
"something" => array:5 [▼
"id" => 1
"title" => "something"
"created_at" => null
"updated_at" => null
"should_not_show" => null
]
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too