/** * Return the translated country name. * * @param $locale * @return null|string */ public function translated($locale) { if (!($key = $this->object->getValue())) { return null; } return trans('anomaly.field_type.country::country.' . $key, [], $locale); }
/** * Handle the command. * * @param Container $container */ public function handle(Container $container) { $container->call(array_get($this->fieldType->getConfig(), 'handler'), ['fieldType' => $this->fieldType]); }