We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d958b68 commit 8e76a96Copy full SHA for 8e76a96
src/Traits/HasTranslations.php
@@ -10,7 +10,7 @@ trait HasTranslations
10
/**
11
* Get the translated $attribute if not exist return the fallback translation
12
*/
13
- public function getTranslated(string $attribute, ?string $lang = null): string {
+ public function getTranslated(string $attribute, ?string $lang = null): ?string {
14
if (!$lang) {
15
$lang = App::getLocale();
16
}
0 commit comments