update([ 'username' => $username, ]); } public function updateEmail(User $user, string $email): void { $user->update([ 'mail' => $email, ]); } public function updateMotto(User $user, string $motto): void { $user->update([ 'motto' => $motto, ]); } public function updateField(User $user, string $field, ?string $value): void { $user->update([ $field => $value, ]); } }