From 21c4251ed2d21e3cc207f88d093cdea79883ba77 Mon Sep 17 00:00:00 2001 From: Robin C Samuel Date: Thu, 30 Jun 2016 20:05:44 +0530 Subject: [PATCH] Update MetaTag.php --- src/Torann/LaravelMetaTags/MetaTag.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Torann/LaravelMetaTags/MetaTag.php b/src/Torann/LaravelMetaTags/MetaTag.php index d346c9e..0a53fd7 100644 --- a/src/Torann/LaravelMetaTags/MetaTag.php +++ b/src/Torann/LaravelMetaTags/MetaTag.php @@ -3,6 +3,7 @@ namespace Torann\LaravelMetaTags; use Illuminate\Http\Request; +use Illuminate\Support\Arr; class MetaTag { @@ -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, '') ]); }