🆙 Add fixed cms 🆙

This commit is contained in:
Remco
2026-02-02 19:30:21 +01:00
parent b1a2cab62d
commit b67e0ec2b9
3982 changed files with 193682 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
<?php
namespace App\Actions;
class UserActions
{
public function updateUsername($user, $username): void
{
$user->update([
'username' => $username,
]);
}
public function updateEmail($user, $email): void
{
$user->update([
'mail' => $email,
]);
}
public function updateMotto($user, $motto): void
{
$user->update([
'motto' => $motto,
]);
}
public function updateField($user, string $field, ?string $value): void
{
$user->update([
$field => $value,
]);
}
}