/**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * Handle the command.
  *
  * @param Container $container
  */
 public function handle(Container $container)
 {
     $container->call(array_get($this->fieldType->getConfig(), 'handler'), ['fieldType' => $this->fieldType]);
 }