F
Filamentβ€’5mo ago
problemli

translate badge column

How can I translate a badge Column in Filament3?
No description
2 Replies
bogus
bogusβ€’5mo 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
problemliβ€’5mo ago
thank you so much! learned something πŸ™‚