public function setDefaultDescription($description = null)
    {
        if (! $this->description) {
            $description = $description ?: config("fields.descriptions.{$this->key}", ucfirst($this->key));
            foreach ((array) $description as $locale => $translation) {
                $locale = is_string($locale) ? $locale : $this->getDefaultLocale();
                $this->setTranslation('description', $translation, $locale);
            }
        }
    }
public function setDefaultDescription($description = null)
    {
        if (! $this->description) {
            $description = $description ?: config("fields.descriptions.{$this->key}", ucfirst($this->key));
            foreach ((array) $description as $locale => $translation) {
                $locale = is_string($locale) ? $locale : $this->getDefaultLocale();
                $this->setTranslation('description', $translation, $locale);
            }
        }
    }
public function setDefaultDescription ( $ description = null ) { if ( ! $ this -> description ) { $ description = $ description ? : config ( "fields.descriptions.{$this->key}" , ucfirst ( $ this -> key ) ) ; foreach ( ( array ) $ description as $ locale => $ translation ) { $ locale = is_string ( $ locale ) ? $ locale : $ this -> getDefaultLocale ( ) ; $ this -> setTranslation ( 'description' , $ translation , $ locale ) ; } } }
Check if description is not set and set it.

@param string|array|null $description
@return void
Check if description is not set and set it .