Skip to content

Commit

Permalink
Use both property and name keys
Browse files Browse the repository at this point in the history
e.g. Facebook looks for 'property' in MetaTags instead of 'name'
  • Loading branch information
helderdb authored Jul 16, 2018
1 parent cca556e commit 2ebd44c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Torann/LaravelMetaTags/MetaTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public function tag($key, $value = '')
{
return $this->createTag([
'name' => $key,
'property' => $key,
'content' => $value ?: Arr::get($this->metas, $key, ''),
]);
}
Expand Down

0 comments on commit 2ebd44c

Please sign in to comment.