public function groups() { return $this->belongsToMany(UserGroup::class, 'user_group_user', 'userId', 'groupId'); }