ldc-doux/app/Enums/Role.php
2021-12-07 23:35:14 +01:00

20 lines
315 B
PHP

<?php
namespace App\Enums;
use Kwaadpepper\Enum\BaseEnumRoutable;
/**
* @method static self admin()
* @method static self user()
*/
class Role extends BaseEnumRoutable
{
protected static function values(): array
{
return [
'admin' => 0,
'user' => 1,
];
}
}