added seo for Persons
This commit is contained in:
@@ -12,4 +12,16 @@ trait HasSeo
|
||||
{
|
||||
return $this->morphOne(Seo::class, 'seoable');
|
||||
}
|
||||
|
||||
public function prepareDescription(string $description): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
'type' => 'paragraph',
|
||||
'data' => [
|
||||
'content' => $description,
|
||||
],
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user