where(['id' => $uid])->update(['password' => $passwd, 'salt' => $salt]); } public function group(): BelongsTo { return $this->belongsTo(UserGroup::class, 'group_id'); } }