投稿詳細にArticleの構造化マークアップを入れてみた。しかし実際にどうやって自分で検索結果で確認できる日が来るんだろう…。
よく分かってないけどこんなJSON
return [
'@context' => 'http://schema.org',
'@type' => 'Article',
'mainEntityOfPage' => [
'@type' => 'WebPage',
'@id' => config('app.url') . "/posts/{$this->unique_id}",
],
'headline' => $this->name,
'image' => $images,
'datePublished' => $this->created_at->format('c'),
'dateModified' => $this->updated_at->format('c'),
'author' => [
'@type' => 'Person',
'name' => $this->user->name,
],
'publisher' => [
'@type' => 'Organization',
'name' => 'Crieit',
'logo' => [
'@type' => 'ImageObject',
'url' => config('app.url') . '/img/card.png',
],
],
'description' => $this->getDescription(107),
];