protected function setupValue()
    {
        $value = $this->getOption($this->valueProperty);
        $isChild = $this->getOption('is_child');

        if ($value instanceof \Closure) {
            $this->valueClosure = $value;
        }

        if (($value === null || $value instanceof \Closure) && !$isChild) {
            $this->setValue($this->getModelValueAttribute($this->parent->getModel(), $this->name));
        } elseif (!$isChild) {
            $this->hasDefault = true;
        }
    }
protected function setupValue()
    {
        $value = $this->getOption($this->valueProperty);
        $isChild = $this->getOption('is_child');

        if ($value instanceof \Closure) {
            $this->valueClosure = $value;
        }

        if (($value === null || $value instanceof \Closure) && !$isChild) {
            $this->setValue($this->getModelValueAttribute($this->parent->getModel(), $this->name));
        } elseif (!$isChild) {
            $this->hasDefault = true;
        }
    }
protected function setupValue ( ) { $ value = $ this -> getOption ( $ this -> valueProperty ) ; $ isChild = $ this -> getOption ( 'is_child' ) ; if ( $ value instanceof \ Closure ) { $ this -> valueClosure = $ value ; } if ( ( $ value === null || $ value instanceof \ Closure ) && ! $ isChild ) { $ this -> setValue ( $ this -> getModelValueAttribute ( $ this -> parent -> getModel ( ) , $ this -> name ) ) ; } elseif ( ! $ isChild ) { $ this -> hasDefault = true ; } }
Setup the value of the form field.

@return void
Setup the value of the form field .