public function getDirtyRawAttributes(): array
    {
        $attributes = $this->getRawAttributes();

        $cachedAttributes = $this->getCachedRawAttributes(array_keys($attributes));

        $dirty = [];

        foreach ($attributes as $key => $value) {
            if ($this->isActualRelation($key) || $key == 'pivot') {
                continue;
            }

            if (!array_key_exists($key, $cachedAttributes) && !$value instanceof Pivot) {
                $dirty[$key] = $value;
            } elseif ($value !== $cachedAttributes[$key] &&
                !$this->originalIsNumericallyEquivalent($value, $cachedAttributes[$key])) {
                $dirty[$key] = $value;
            }
        }

        return $dirty;
    }
public function getDirtyRawAttributes(): array
    {
        $attributes = $this->getRawAttributes();

        $cachedAttributes = $this->getCachedRawAttributes(array_keys($attributes));

        $dirty = [];

        foreach ($attributes as $key => $value) {
            if ($this->isActualRelation($key) || $key == 'pivot') {
                continue;
            }

            if (!array_key_exists($key, $cachedAttributes) && !$value instanceof Pivot) {
                $dirty[$key] = $value;
            } elseif ($value !== $cachedAttributes[$key] &&
                !$this->originalIsNumericallyEquivalent($value, $cachedAttributes[$key])) {
                $dirty[$key] = $value;
            }
        }

        return $dirty;
    }
public function getDirtyRawAttributes ( ) : array { $ attributes = $ this -> getRawAttributes ( ) ; $ cachedAttributes = $ this -> getCachedRawAttributes ( array_keys ( $ attributes ) ) ; $ dirty = [ ] ; foreach ( $ attributes as $ key => $ value ) { if ( $ this -> isActualRelation ( $ key ) || $ key == 'pivot' ) { continue ; } if ( ! array_key_exists ( $ key , $ cachedAttributes ) && ! $ value instanceof Pivot ) { $ dirty [ $ key ] = $ value ; } elseif ( $ value !== $ cachedAttributes [ $ key ] && ! $ this -> originalIsNumericallyEquivalent ( $ value , $ cachedAttributes [ $ key ] ) ) { $ dirty [ $ key ] = $ value ; } } return $ dirty ; }
Get Only Raw Entity attributes which have been modified
since last query.

@return array
Get Only Raw Entity attributes which have been modified since last query .