classes/Models/Traits/Encodable.php
public function getDirtyEncodableAttributes()
    {
        if (empty($this->encodable_attributes)) {
            return [];
        }

        return array_filter($this->encodable_attributes, function ($attribute) {

            // The file has changed
            if ($this->isDirty($attribute)) {
                return true;
            }

            // The encoding preset is changing
            return $this->hasDirtyPreset($attribute);
        });
    }
public function getDirtyEncodableAttributes()
    {
        if (empty($this->encodable_attributes)) {
            return [];
        }

        return array_filter($this->encodable_attributes, function ($attribute) {

            // The file has changed
            if ($this->isDirty($attribute)) {
                return true;
            }

            // The encoding preset is changing
            return $this->hasDirtyPreset($attribute);
        });
    }
public function getDirtyEncodableAttributes ( ) { if ( empty ( $ this -> encodable_attributes ) ) { return [ ] ; } return array_filter ( $ this -> encodable_attributes , function ( $ attribute ) { // The file has changed if ( $ this -> isDirty ( $ attribute ) ) { return true ; } // The encoding preset is changing return $ this -> hasDirtyPreset ( $ attribute ) ; } ) ; }
Get all the attributes on a model who support video encodes and are dirty.
An encode is considered dirty if a file is uploaded, replaced, marked for
deletion OR if it's preset has changed.

@return array
Get all the attributes on a model who support video encodes and are dirty . An encode is considered dirty if a file is uploaded replaced marked for deletion OR if it s preset has changed .