protected function getRemovedKeys()
    {
        $removedKeys = [];

        foreach ($this->originalAttributes as $key=>$value) {

            if (!array_key_exists($key, $this->attributes)) {
                $removedKeys[] = $key;
                continue;
            }
        }

        return $removedKeys;
    }
protected function getRemovedKeys()
    {
        $removedKeys = [];

        foreach ($this->originalAttributes as $key=>$value) {

            if (!array_key_exists($key, $this->attributes)) {
                $removedKeys[] = $key;
                continue;
            }
        }

        return $removedKeys;
    }
protected function getRemovedKeys ( ) { $ removedKeys = [ ] ; foreach ( $ this -> originalAttributes as $ key => $ value ) { if ( ! array_key_exists ( $ key , $ this -> attributes ) ) { $ removedKeys [ ] = $ key ; continue ; } } return $ removedKeys ; }
Return all removed keys. You could set them all to zero in storage.

@return array
Return all removed keys . You could set them all to zero in storage .