first&last

This commit is contained in:
sbb45
2026-03-20 15:47:17 +05:00
commit d6441abdd2
230 changed files with 20367 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App\Enums;
enum UserRole: string
{
case ADMIN = 'admin';
case MANAGER = 'manager';
case TECHNICIAN = 'technician';
case CLIENT = 'client';
public function label(): string
{
return match ($this) {
self::ADMIN => 'Администратор',
self::MANAGER => 'Менеджер',
self::TECHNICIAN => 'Техник',
self::CLIENT => 'Клиент',
};
}
}