CountryTranslation */ public $translationModel; /** * This is the foreign key used to define the translation relationship. * Set this if you want to overwrite the laravel default for foreign keys. * * @var */ public $translationForeignKey; /** * The database field being used to define the locale parameter in the translation model. * Defaults to 'locale'. * * @var string */ public $localeKey; /** * Mutate name attribute into upper-case. * * @param $value * * @return string */ public function getNameAttribute($value) { return ucfirst($value); } }