translate badge column

How can I translate a badge Column in Filament3?
No description
2 Replies
bogus
bogus11mo ago
enum StatusCode: int implements HasLabel
{
case SUCCESS = 200;

public function getLabel(): ?string
{
return match ($this) {
self::SUCCESS => __('Success')

};
}
}
enum StatusCode: int implements HasLabel
{
case SUCCESS = 200;

public function getLabel(): ?string
{
return match ($this) {
self::SUCCESS => __('Success')

};
}
}
+ use cast for model & status field
problemli
problemliOP11mo ago
thank you so much! learned something 🙂

Did you find this page helpful?