Skip to content

Commit

Permalink
Update MetaTag.php
Browse files Browse the repository at this point in the history
  • Loading branch information
robincsamuel authored Jun 30, 2016
1 parent d2f58ea commit 21c4251
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?:$this->metas[$key]
'content' => $value ?: Arr::get($this->metas, $key, '')
]);
}

Expand Down

0 comments on commit 21c4251

Please sign in to comment.