You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for making this issue, it was easy to set up and I can clearly see what's going on.
Someone else can weigh in on this but I wouldn't think this is a bug. You have a custom eloquent Pivot model for LessonVocabulary, and the reason it doesn't return ids is because you didn't specify that it is incrementing.
If you add this incrementing property to your Pivot model, the Repeater should work fine.
Thank you for making this issue, it was easy to set up and I can clearly see what's going on.
Someone else can weigh in on this but I wouldn't think this is a bug. You have a custom eloquent Pivot model for LessonVocabulary, and the reason it doesn't return ids is because you didn't specify that it is incrementing.
If you add this incrementing property to your Pivot model, the Repeater should work fine.
I can confirm that it solved my problem! Many thanks @yuters
Package
filament/filament
Package Version
v3.3
Laravel Version
v11.31
Livewire Version
No response
PHP Version
PHP 8.3.9
Problem description
When I add more than one item to the repeater, only one is shown after saving. I have to refresh the page to show all the correct items.
Expected behavior
If I add two items using the repeater, I expect to see two after saving. If I add three items, I expect to see three and so on.
Steps to reproduce
Reproduction repository (issue will be closed if this is not valid)
https://github.com/fedenuche/filament-bug-with-repeater
Relevant log output
The text was updated successfully, but these errors were encountered: