fix: add missing hasTranslation method to AboutMe model
All checks were successful
Deploy Backend / deploy (push) Successful in 3m19s
All checks were successful
Deploy Backend / deploy (push) Successful in 3m19s
This commit is contained in:
parent
9f7619146f
commit
4df456b9d5
@ -37,6 +37,12 @@ public function getTranslation(string $key, string $locale, bool $useFallbackLoc
|
||||
return null;
|
||||
}
|
||||
|
||||
public function hasTranslation(string $key, string $locale): bool
|
||||
{
|
||||
$translations = $this->translations;
|
||||
return isset($translations[$key][$locale]);
|
||||
}
|
||||
|
||||
public function getTitleAttribute()
|
||||
{
|
||||
return $this->translations['title'] ?? null;
|
||||
@ -47,4 +53,4 @@ public function getDescriptionAttribute()
|
||||
return $this->translations['description'] ?? null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user