diff --git a/src/Traits/HasTranslations.php b/src/Traits/HasTranslations.php index dc769de..9771da1 100644 --- a/src/Traits/HasTranslations.php +++ b/src/Traits/HasTranslations.php @@ -10,7 +10,7 @@ trait HasTranslations /** * Get the translated $attribute if not exist return the fallback translation */ - public function getTranslated(string $attribute, ?string $lang = null): string { + public function getTranslated(string $attribute, ?string $lang = null): ?string { if (!$lang) { $lang = App::getLocale(); }