29 lines
494 B
PHP
29 lines
494 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Kwaadpepper\Enum\BaseEnumRoutable;
|
|
|
|
/**
|
|
* @method static self admin()
|
|
* @method static self rh()
|
|
*/
|
|
|
|
class Role extends BaseEnumRoutable
|
|
{
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'admin' => 0,
|
|
'rh' => 1
|
|
];
|
|
}
|
|
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'admin' => trans('Administrateur'),
|
|
'rh' => trans('Ressource humaines')
|
|
];
|
|
}
|
|
}
|