protected function compileJsonUpdateColumn($key, $value)
    {
        $parts = explode('->', $key);

        $field = $this->wrap(array_shift($parts));

        $path = '\'{"'.implode('","', $parts).'"}\'';

        return "{$field} = jsonb_set({$field}::jsonb, {$path}, {$this->parameter($value)})";
    }
protected function compileJsonUpdateColumn($key, $value)
    {
        $parts = explode('->', $key);

        $field = $this->wrap(array_shift($parts));

        $path = '\'{"'.implode('","', $parts).'"}\'';

        return "{$field} = jsonb_set({$field}::jsonb, {$path}, {$this->parameter($value)})";
    }
protected function compileJsonUpdateColumn ( $ key , $ value ) { $ parts = explode ( '->' , $ key ) ; $ field = $ this -> wrap ( array_shift ( $ parts ) ) ; $ path = '\'{"' . implode ( '","' , $ parts ) . '"}\'' ; return "{$field} = jsonb_set({$field}::jsonb, {$path}, {$this->parameter($value)})" ; }
Prepares a JSON column being updated using the JSONB_SET function.

@param  string  $key
@param  mixed  $value
@return string
Prepares a JSON column being updated using the JSONB_SET function .