public function isAutomaticallyUpdatedDate($attribute)
    {
        // soft deletes
        if (in_array('Illuminate\Database\Eloquent\SoftDeletes', class_uses(static::class)) && $attribute == $this->getDeletedAtColumn()) {
            return true;
        }

        // timestamps
        if ($this->timestamps && ($attribute == $this->getCreatedAtColumn() || $attribute == $this->getUpdatedAtColumn())) {
            return true;
        }
        
        return false;
    }
public function isAutomaticallyUpdatedDate($attribute)
    {
        // soft deletes
        if (in_array('Illuminate\Database\Eloquent\SoftDeletes', class_uses(static::class)) && $attribute == $this->getDeletedAtColumn()) {
            return true;
        }

        // timestamps
        if ($this->timestamps && ($attribute == $this->getCreatedAtColumn() || $attribute == $this->getUpdatedAtColumn())) {
            return true;
        }
        
        return false;
    }
public function isAutomaticallyUpdatedDate ( $ attribute ) { // soft deletes if ( in_array ( 'Illuminate\Database\Eloquent\SoftDeletes' , class_uses ( static :: class ) ) && $ attribute == $ this -> getDeletedAtColumn ( ) ) { return true ; } // timestamps if ( $ this -> timestamps && ( $ attribute == $ this -> getCreatedAtColumn ( ) || $ attribute == $ this -> getUpdatedAtColumn ( ) ) ) { return true ; } return false ; }
Check if attribute is auto generated and updated date.

@param string $attribute
@return boolean
Check if attribute is auto generated and updated date .