This commit is contained in:
vishal-webkul 2020-07-22 15:31:35 +05:30
parent 9f1bded941
commit 8e5051acd3
1 changed files with 12 additions and 0 deletions

View File

@ -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;
}
}