toArray(); } } public static function select(): array { // self::initCache(); return collect(Role::cases()) // ->mapWithKeys(fn (Role $r) => [self::$roles[$r->value] => $r->name]) ->mapWithKeys(fn (Role $r) => [$r->value => $r->name]) ->toArray(); } }