we try to update the json data key value.we stored record in database product_name column like
{"ar":"arabic product","en":""}
we try to achieve this both below two method
DB::table('products')
->where('id', 1)
->update(['productname->en' => 'english product']);
$post = product::find($product_id);
$post->product_name = [$language => $edittitle];
$post->save();
we want to update the json en key value.
product_nameorproductname?