feat: add username management system

This commit is contained in:
idevakk
2025-11-15 21:41:28 -08:00
parent ca94c360ea
commit ea0bc91251
11 changed files with 647 additions and 0 deletions

25
app/enum/UsernameType.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
namespace App\enum;
enum UsernameType: string
{
case PUBLIC = 'public';
case PREMIUM = 'premium';
public function getColor(): string
{
return match ($this) {
self::PUBLIC => 'warning',
self::PREMIUM => 'success',
};
}
public function getLabel(): string
{
return match ($this) {
self::PUBLIC => 'Public',
self::PREMIUM => 'Premium',
};
}
}