$link[0], 'url' => '/blogs/' . $link[1], ]; } $extra_config['links'] = $new_links; } DB::update([ "update contests", "set", [ "extra_config" => json_encode($extra_config, JSON_FORCE_OBJECT), ], "where", [ "id" => $contest['id'], ], ]); } } };