public function getFieldValue()
    {
        $field_name = $this->field->getAttribute('field_name');

        $oldInput = app('session')->getOldInput($this->getPrefixedFieldName());

        if ($oldInput === null) {
            if ($this->model) {
                $value = $this->model->getAttribute($field_name);

                if ($value !== null) {
                    return $value;
                }
            }

            return $this->field->getAttribute('value');
        }

        return $oldInput;
    }