From 8e5051acd366f5dece77154b83e9869e3e649792 Mon Sep 17 00:00:00 2001 From: vishal-webkul Date: Wed, 22 Jul 2020 15:31:35 +0530 Subject: [PATCH] issue #3547 fixed --- packages/Webkul/Core/src/Models/Country.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/Webkul/Core/src/Models/Country.php b/packages/Webkul/Core/src/Models/Country.php index 1b6fbd783..9c3ac5a41 100755 --- a/packages/Webkul/Core/src/Models/Country.php +++ b/packages/Webkul/Core/src/Models/Country.php @@ -12,4 +12,16 @@ class Country extends TranslatableModel implements CountryContract public $translatedAttributes = ['name']; protected $with = ['translations']; + + /** + * @return array + */ + public function toArray() + { + $array = parent::toArray(); + + $array['name'] = $this->name; + + return $array; + } } \ No newline at end of file