更新json数组

Route::get('/', function () {


  \App\User::query()->where('id', 1)
  ->update(['images' => DB::raw("json_set(`images`, '$[2]', 'https://xxx.com')")]);


  dd(\App\User::find(1));

});