You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TableSortDirection.php 337B

123456789101112131415161718
  1. <?php
  2. namespace App\Enums\Setting;
  3. use Filament\Support\Contracts\HasLabel;
  4. enum TableSortDirection: string implements HasLabel
  5. {
  6. case Ascending = 'asc';
  7. case Descending = 'desc';
  8. public const DEFAULT = self::Ascending->value;
  9. public function getLabel(): ?string
  10. {
  11. return translate($this->name);
  12. }
  13. }