issue #3547 fixed
This commit is contained in:
parent
9f1bded941
commit
8e5051acd3
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue