list item disappears when it is saved
Hello, anyone can help me ?. I have a table repeater. when I want to save the list, the list disappears when it is saved.
What's wrong here? Please help
Thank You
6 Replies
Seems like this should be a
->relationship()
on the table repeater
But hard to tell only from screenshotsi attach the video sir.
when i write relationship(), it shows error like this
Yes. But I can't see your code from that, and only saw a part of it from your screenshots.
First: Do you want to save to a relation?
If yes: Please check the repeater docs on the syntax.
If no: Filament saves to a column on the current model which needs to be
fillable
and should have an array
castYou also will need to provide your listsoItems relationship code
i have found the solution. should be stock_opname_id. but I wrote down stockopname_id