fix: add missing hasTranslation method to AboutMe model
This commit is contained in:
parent
223a4f5640
commit
1a75055dd9
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user