Allow duplicates?

Hello everione, first day with filament. I want to archive something, i have two models Member and Memberships, with a BelongsToMany relation, it works fine, but i want to add multiple instances of the same Membership to a Member, but when i want to attach another membership it dosent show, anyone can help me, i follow the allow multiple documentation but seems like i do it wrong. thanks
Solution:
i just did somehting like this
No description
Jump to solution
4 Replies
Emil | Emien
Emil | Emien14mo ago
How does your code look? Have you added id field on the pivot table? and allowsDuplicates?
protected bool $allowsDuplicates = true;
protected bool $allowsDuplicates = true;
FerVillanuev4s
FerVillanuev4sOP14mo ago
Hi, thanks for answer, yes i added to the RelationManager
No description
No description
Solution
FerVillanuev4s
FerVillanuev4s14mo ago
i just did somehting like this
No description
FerVillanuev4s
FerVillanuev4sOP14mo ago
works fine now
Want results from more Discord servers?
Add your server