diff --git a/src/Concerns/HasFieldLabel.php b/src/Concerns/HasFieldLabel.php index 723c643..fa2c9c8 100644 --- a/src/Concerns/HasFieldLabel.php +++ b/src/Concerns/HasFieldLabel.php @@ -34,7 +34,7 @@ public function getLabel(): string ->kebab() ->replace(['-', '_'], ' ') ->ucfirst(); - + return (is_string($label) && $this->shouldTranslateLabel) ? __($label) : $label;