filament/filament
v3.2.97
v11.19.0
No response
PHP 8.3.0
When using a pivot model with casts, the casts are not applied in the edit form of a relation manager.
It is displayed correctly in the table, but not in the edit form.
Current workaround:
->afterStateHydrated(fn(Forms\Components\TextInput $component, $state) => $component->state($state / 100))
Warning: With a fix, this will lead to bugs.
Apply the casts aswell in the edit form.
Create a n-n Relation between 2 models using a Pivot model and casts.
Create a relation manager on one of both relations.
Inside the relation manager, add an AttachAction and an EditAction with a form using pivot values.
https://github.com/AndiLfl/filament-issues-relation-manager-cast
No response
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