generated from Flycro/laravel-breeze-api
16 lines
356 B
PHP
16 lines
356 B
PHP
<?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',
|
|
};
|
|
}
|
|
}
|