classes/Models/Change.php
static private function shouldWriteChange(Model $model, $action)
    {
        if (in_array($action, ['created', 'deleted'])) return true;
        $changed_attributes = array_keys($model->getDirty());
        $ignored = ['updated_at', 'public'];
        $loggable = array_diff($changed_attributes, $ignored);
        return count($loggable) > 0;
    }
static private function shouldWriteChange(Model $model, $action)
    {
        if (in_array($action, ['created', 'deleted'])) return true;
        $changed_attributes = array_keys($model->getDirty());
        $ignored = ['updated_at', 'public'];
        $loggable = array_diff($changed_attributes, $ignored);
        return count($loggable) > 0;
    }
static private function shouldWriteChange ( Model $ model , $ action ) { if ( in_array ( $ action , [ 'created' , 'deleted' ] ) ) return true ; $ changed_attributes = array_keys ( $ model -> getDirty ( ) ) ; $ ignored = [ 'updated_at' , 'public' ] ; $ loggable = array_diff ( $ changed_attributes , $ ignored ) ; return count ( $ loggable ) > 0 ; }
Don't log changes when the only thing that changed was the published
state or updated timestamp.  We check if there are any attributes
besides these that changed.

@param  Model  $model  The model being touched
@param  string $action
@return boolean
Don t log changes when the only thing that changed was the published state or updated timestamp . We check if there are any attributes besides these that changed .