belongsToMany select for relation not working
anyone knows what I'm doing wrong in this Select field with relation BelongsToMany using pivot table
public function users()
{
return $this->belongsToMany(User::class, 'section_users', 'id_section, 'user_id');
}
in my form I have:
i can select users in the field, but when i save the form, the relation is not saved, works just fine if i use a relation manager for that relation
1 Reply
Found the issue, i was having a ->model(Sectiuni::class) placed on my form, removed that an everything is oky now