public getOldAttribute ( string $name ) : mixed | ||
$name | string | the attribute name |
return | mixed | the old attribute value. `null` if the attribute is not loaded before or does not exist. |
public function getOldAttribute($name)
{
return isset($this->_oldAttributes[$name]) ? $this->_oldAttributes[$name] : null;
}