protected function makeConfiguration()
    {
        if ($this->on == 'create' || $this->on == 'update') {
            return $this->fieldName;
        }

        return [
            'field'        => $this->fieldName,
            'trackedField' => $this->trackedFields,
            'value'        => $this->value,
        ];
    }
protected function makeConfiguration()
    {
        if ($this->on == 'create' || $this->on == 'update') {
            return $this->fieldName;
        }

        return [
            'field'        => $this->fieldName,
            'trackedField' => $this->trackedFields,
            'value'        => $this->value,
        ];
    }
protected function makeConfiguration ( ) { if ( $ this -> on == 'create' || $ this -> on == 'update' ) { return $ this -> fieldName ; } return [ 'field' => $ this -> fieldName , 'trackedField' => $ this -> trackedFields , 'value' => $ this -> value , ] ; }
Returns either the field name on "create" and "update", or the array configuration on "change".

@return array|string
Returns either the field name on create and update or the array configuration on change .