private function getOldAttribute($name)
    {
        if ($this->hasOldAttribute($name)) {
            $collection = $this->getOldAttributes();
            return $collection[$name];
        } else {
            // Error
        }
    }
private function getOldAttribute($name)
    {
        if ($this->hasOldAttribute($name)) {
            $collection = $this->getOldAttributes();
            return $collection[$name];
        } else {
            // Error
        }
    }
private function getOldAttribute ( $ name ) { if ( $ this -> hasOldAttribute ( $ name ) ) { $ collection = $ this -> getOldAttributes ( ) ; return $ collection [ $ name ] ; } else { // Error } }
Returns old attribute value

@param string $name Attribute name
@return mixed
Returns old attribute value