public function attributeWas($attr)
    {
        return $this->attributeChanged($attr) ?
                $this->changedAttributes[$attr] :
                $this->getAttribute($attr);
    }
public function attributeWas($attr)
    {
        return $this->attributeChanged($attr) ?
                $this->changedAttributes[$attr] :
                $this->getAttribute($attr);
    }
public function attributeWas ( $ attr ) { return $ this -> attributeChanged ( $ attr ) ? $ this -> changedAttributes [ $ attr ] : $ this -> getAttribute ( $ attr ) ; }
This method returns the previous value of an attribute before updating a record. If
it was not changed, returns null.
This method returns the previous value of an attribute before updating a record . If it was not changed returns null .