classes/Models/Traits/Encodable.php
public function hasDirtyPreset($attribute)
    {

        // Require a previous encoding instance
        return ($encoding = $this->encoding($attribute))

            // Make sure the input actually contains a preset.  It won't in cases like
            // the AJAX PUT during listing drag and drop sorting or visibility toggle
            && ($preset_key = $this->encodingPresetInputKey($attribute))
            && request()->exists($preset_key)

            // Check if the preset has changed
            && request($preset_key) != $encoding->preset;
    }
public function hasDirtyPreset($attribute)
    {

        // Require a previous encoding instance
        return ($encoding = $this->encoding($attribute))

            // Make sure the input actually contains a preset.  It won't in cases like
            // the AJAX PUT during listing drag and drop sorting or visibility toggle
            && ($preset_key = $this->encodingPresetInputKey($attribute))
            && request()->exists($preset_key)

            // Check if the preset has changed
            && request($preset_key) != $encoding->preset;
    }
public function hasDirtyPreset ( $ attribute ) { // Require a previous encoding instance return ( $ encoding = $ this -> encoding ( $ attribute ) ) // Make sure the input actually contains a preset.  It won't in cases like // the AJAX PUT during listing drag and drop sorting or visibility toggle && ( $ preset_key = $ this -> encodingPresetInputKey ( $ attribute ) ) && request ( ) -> exists ( $ preset_key ) // Check if the preset has changed && request ( $ preset_key ) != $ encoding -> preset ; }
Check if the preset choice is dirty

@param  string  $attribute
@return boolean
Check if the preset choice is dirty