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

DocumentPriceColumn.php 333B

12345678910111213141516171819
  1. <?php
  2. namespace App\Enums;
  3. use Filament\Support\Contracts\HasLabel;
  4. enum DocumentPriceColumn: string implements HasLabel
  5. {
  6. case Price = 'price';
  7. case Rate = 'rate';
  8. case Other = 'other';
  9. public const DEFAULT = self::Price->value;
  10. public function getLabel(): ?string
  11. {
  12. return $this->name;
  13. }
  14. }