This commit is contained in:
2023-11-16 22:57:56 +01:00
commit 237d969e5c
146 changed files with 23818 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
namespace App\Enums;
enum RolesEnum: string
{
case SUPERADMIN = 'super-admin';
// extra helper to allow for greater customization of displayed values, without disclosing the name/value data directly
public function label(): string
{
return match ($this) {
static::SUPERADMIN => 'Super Admin',
};
}
}