Skip to content

Commit

Permalink
Merge pull request Torann#2 from robincsamuel/patch-1
Browse files Browse the repository at this point in the history
Meta tag description not working
  • Loading branch information
Torann authored Jul 13, 2016
2 parents 9577649 + 21c4251 commit b88bb0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Torann/LaravelMetaTags/MetaTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Torann\LaravelMetaTags;

use Illuminate\Http\Request;
use Illuminate\Support\Arr;

class MetaTag
{
Expand Down Expand Up @@ -127,7 +128,7 @@ public function tag($key, $value = '')
{
return $this->createTag([
'name' => $key,
'content' => $value
'content' => $value ?: Arr::get($this->metas, $key, '')
]);
}

Expand Down

0 comments on commit b88bb0a

Please sign in to comment.