Why does TextInput does not want to save value
Hi everyone i have a problem where mine textinput does not want to save the value i enter. This is how i made the textinput
3 Replies
Here you can see the code in better structure
The name of the textInput = contents.{$lang->value}.title
The save will try to resolve the relation contents.[lang] right?
and save it to the title column on that relation.
Does that relation even exist in the contents model?
I have a table called project_contents and table projects, i have a relation between Project and ProjecContent
And for the ProjectContent like down below i am using the scoupe so i can access the record with languages i want
this code works for me i use afterStateHydrate just to show the data and this code to update