I have the manyToMany relationship between Grupos
and Usuarios
and a pivot table grupo_usuario
that stores the keys and an extra aprovador
, Boolean field, which serves to indicate if the user in the relationship can vote or not.
I do not know how to insert the aprovador
attribute for the user only in this relationship to be able to do something like:
$grupo->usuarios[0]->aprovador