added seo for Persons

This commit is contained in:
F4ilji
2025-05-25 19:01:00 +05:00
parent 9c22e7601c
commit 7d6b75b708
6 changed files with 49 additions and 4 deletions
+12
View File
@@ -12,4 +12,16 @@ trait HasSeo
{
return $this->morphOne(Seo::class, 'seoable');
}
public function prepareDescription(string $description): array
{
return [
[
'type' => 'paragraph',
'data' => [
'content' => $description,
],
]
];
}
}