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