public function getChangedAttributes()
    {
        $output = array();

        foreach ($this->attributes as $name => $value) {
            if ($this->hasChanged($name)) {
                $output[$name] = $value;
            }
        }

        return $output;
    }
public function getChangedAttributes()
    {
        $output = array();

        foreach ($this->attributes as $name => $value) {
            if ($this->hasChanged($name)) {
                $output[$name] = $value;
            }
        }

        return $output;
    }
public function getChangedAttributes ( ) { $ output = array ( ) ; foreach ( $ this -> attributes as $ name => $ value ) { if ( $ this -> hasChanged ( $ name ) ) { $ output [ $ name ] = $ value ; } } return $ output ; }
Returns a collection of changed attributes

@return array
Returns a collection of changed attributes