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
Dennis Koch
Dennis Koch2y ago
Seems like this should be a ->relationship() on the table repeater But hard to tell only from screenshots
FACHRI
FACHRIOP2y ago
i attach the video sir.
FACHRI
FACHRIOP2y ago
when i write relationship(), it shows error like this
Dennis Koch
Dennis Koch2y ago
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 cast
toeknee
toeknee2y ago
You also will need to provide your listsoItems relationship code
FACHRI
FACHRIOP2y ago
i have found the solution. should be stock_opname_id. but I wrote down stockopname_id
Want results from more Discord servers?
Add your server