src/Html/FormBuilder.php
public function getValueAttribute($name, $value = null)
    {
        if (strpos($name, '[]') !== false) {
            $name = str_replace('[]', '', $name);
        }

        if ($this->hasOldInput()) {
            return $this->getOldInput($name);
        }

        if ($this->hasModelValue($name)) {
            return $this->getModelValue($name);
        }

        return $value;
    }
public function getValueAttribute($name, $value = null)
    {
        if (strpos($name, '[]') !== false) {
            $name = str_replace('[]', '', $name);
        }

        if ($this->hasOldInput()) {
            return $this->getOldInput($name);
        }

        if ($this->hasModelValue($name)) {
            return $this->getModelValue($name);
        }

        return $value;
    }
public function getValueAttribute ( $ name , $ value = null ) { if ( strpos ( $ name , '[]' ) !== false ) { $ name = str_replace ( '[]' , '' , $ name ) ; } if ( $ this -> hasOldInput ( ) ) { return $ this -> getOldInput ( $ name ) ; } if ( $ this -> hasModelValue ( $ name ) ) { return $ this -> getModelValue ( $ name ) ; } return $ value ; }
Get value from an attribute.

@param string $name
@param mixed  $value

@return mixed
Get value from an attribute .