F
Filamentβ€’9mo ago
problemli

translate badge column

How can I translate a badge Column in Filament3?
No description
2 Replies
bogus
bogusβ€’9mo 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
problemliOPβ€’9mo ago
thank you so much! learned something πŸ™‚
Want results from more Discord servers?
Add your server