2 months ago

Whats the best way to remove item on a hasMany relation

Posted 2 months ago by KevDev

Hi. So I have a posts that has a hasMany relation with photos and then I remove 1 of the photos but the relation only not the data inside photos table. I remember there is sync on many to many relation. how can I do something like that on hasMany?

Please sign in or create an account to participate in this conversation.