Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

DiscountScope.php 274B

12345678910111213141516
  1. <?php
  2. namespace App\Enums;
  3. use Filament\Support\Contracts\HasLabel;
  4. enum DiscountScope: string implements HasLabel
  5. {
  6. case Product = 'product';
  7. case Service = 'service';
  8. public function getLabel(): ?string
  9. {
  10. return translate($this->name);
  11. }
  12. }