您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

DocumentItemColumn.php 426B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Enums;
  3. use App\Enums\Concerns\Utilities;
  4. use Filament\Support\Contracts\HasLabel;
  5. enum DocumentItemColumn: string implements HasLabel
  6. {
  7. use Utilities;
  8. case Items = 'items';
  9. case Products = 'products';
  10. case Services = 'services';
  11. case Other = 'other';
  12. public const DEFAULT = self::Items->value;
  13. public function getLabel(): ?string
  14. {
  15. return $this->name;
  16. }
  17. }