Skip to content

Commit

Permalink
Meta tag description not working
Browse files Browse the repository at this point in the history
Default value was not working. I set description from controller and that worked for og:description, but the meta tag description content was empty for {!! Meta::tag('description'); !!}.
  • Loading branch information
robincsamuel committed May 25, 2016
1 parent 9577649 commit d2f58ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Torann/LaravelMetaTags/MetaTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function tag($key, $value = '')
{
return $this->createTag([
'name' => $key,
'content' => $value
'content' => $value?:$this->metas[$key]
]);
}

Expand Down

0 comments on commit d2f58ea

Please sign in to comment.