feat: filament for users

This commit is contained in:
2026-05-21 14:53:44 +02:00
parent 646f5a1ea8
commit f24999d7fb
8 changed files with 365 additions and 37 deletions
+13 -1
View File
@@ -2,10 +2,22 @@
namespace App\Enums;
enum UserSex: string
use Filament\Support\Contracts\HasLabel;
enum UserSex: string implements HasLabel
{
case MAN = 'man';
case WOMAN = 'woman';
case OTHER = 'other';
case UNKNOWN = 'unknown';
public function getLabel(): string
{
return match ($this) {
self::MAN => 'Homme',
self::WOMAN => 'Femme',
self::OTHER => 'Autre',
self::UNKNOWN => 'Non renseigné',
};
}
}