protected function applyExtraConfig($config, $field = null)
    {
        if (!$field) {
            $field = $this->field;
        }

        if (!$config || !isset($this->originalConfig->{$field})) {
            return;
        }

        if (
            !is_array($config) &&
            (!$config = @json_decode(@base64_decode($config), true))
        ) {
            return;
        }

        $parsedConfig = array_only($config, ['readOnly']);
        $parsedConfig['view'] = array_only($config, ['recordUrl', 'recordOnClick']);

        $this->originalConfig->{$field} = array_replace_recursive(
            $this->originalConfig->{$field},
            $parsedConfig
        );
    }
protected function applyExtraConfig($config, $field = null)
    {
        if (!$field) {
            $field = $this->field;
        }

        if (!$config || !isset($this->originalConfig->{$field})) {
            return;
        }

        if (
            !is_array($config) &&
            (!$config = @json_decode(@base64_decode($config), true))
        ) {
            return;
        }

        $parsedConfig = array_only($config, ['readOnly']);
        $parsedConfig['view'] = array_only($config, ['recordUrl', 'recordOnClick']);

        $this->originalConfig->{$field} = array_replace_recursive(
            $this->originalConfig->{$field},
            $parsedConfig
        );
    }
protected function applyExtraConfig ( $ config , $ field = null ) { if ( ! $ field ) { $ field = $ this -> field ; } if ( ! $ config || ! isset ( $ this -> originalConfig -> { $ field } ) ) { return ; } if ( ! is_array ( $ config ) && ( ! $ config = @ json_decode ( @ base64_decode ( $ config ) , true ) ) ) { return ; } $ parsedConfig = array_only ( $ config , [ 'readOnly' ] ) ; $ parsedConfig [ 'view' ] = array_only ( $ config , [ 'recordUrl' , 'recordOnClick' ] ) ; $ this -> originalConfig -> { $ field } = array_replace_recursive ( $ this -> originalConfig -> { $ field } , $ parsedConfig ) ; }
Apply extra configuration
Apply extra configuration