private function changedAuditingFields()
    {
        $changes_to_record = [];
        $attributes        = $this->getAttributes();
        foreach ($attributes as $key => $value) {

            if ($this->isAuditing($key) && !is_array($value)) {
                // Check whether the current value is difetente the original value
                //if (!isset($this->originalData[$key]) || $this->originalData[$key] != $this->updatedData[$key]) {
                $changes_to_record[$key] = $value;
                //}
            } else {
                unset($this->updatedData[$key]);
                unset($this->originalData[$key]);
            }
        }

        return $changes_to_record;
    }
private function changedAuditingFields()
    {
        $changes_to_record = [];
        $attributes        = $this->getAttributes();
        foreach ($attributes as $key => $value) {

            if ($this->isAuditing($key) && !is_array($value)) {
                // Check whether the current value is difetente the original value
                //if (!isset($this->originalData[$key]) || $this->originalData[$key] != $this->updatedData[$key]) {
                $changes_to_record[$key] = $value;
                //}
            } else {
                unset($this->updatedData[$key]);
                unset($this->originalData[$key]);
            }
        }

        return $changes_to_record;
    }
private function changedAuditingFields ( ) { $ changes_to_record = [ ] ; $ attributes = $ this -> getAttributes ( ) ; foreach ( $ attributes as $ key => $ value ) { if ( $ this -> isAuditing ( $ key ) && ! is_array ( $ value ) ) { // Check whether the current value is difetente the original value //if (!isset($this->originalData[$key]) || $this->originalData[$key] != $this->updatedData[$key]) { $ changes_to_record [ $ key ] = $ value ; //} } else { unset ( $ this -> updatedData [ $ key ] ) ; unset ( $ this -> originalData [ $ key ] ) ; } } return $ changes_to_record ; }
Fields Changed.

@return array
Fields Changed .