Closed olivierguerriat closed 11 months ago
ingredient_id
is not fillable
Thank you very much! I'm sorry I took your time for this.
(I had it fillable at some point in my main project and it didn't help, but I guess I fixed another problem in the meantime and it now works as expected.)
Package
filament/filament
Package Version
^3.0-stable
Laravel Version
^10.10
Livewire Version
?
PHP Version
8.1
Problem description
When saving an object (recipe) containing a
Repeater
associated to a relationship (recipe ingredients), itself containing aSelect
associated to a relationship (ingredients), that last relationship isn't saved even though the other fields within the repeater (quantity) work as expected.Expected behavior
I would expect all fields within the repeater to behave as usual, ending up saved in the DB.
Steps to reproduce
Here's the code within
RecipeResource
that doesn't work as expected (theSelect
value isn't considered when inserting the "recipe ingredient" in the database).To reproduce, go to the panel in a browser, create a recipe with at least one ingredient (create it inline if required) and save it.
Reproduction repository
https://github.com/olivierguerriat/filament-nested-relationships
(my code is in this commit)
Relevant log output
No response
Possibly related issues