Skip to content

Instantly share code, notes, and snippets.

@raco
Created October 31, 2017 06:15
Show Gist options
  • Save raco/0ee2b0917a22fe67a4493d09b7fa96f3 to your computer and use it in GitHub Desktop.
Save raco/0ee2b0917a22fe67a4493d09b7fa96f3 to your computer and use it in GitHub Desktop.
Query Builder remove item from json
\DB::table('faces')->where('id', $faceId)->update(['meta'=> \DB::raw("json_remove(meta, '$.{$request->index}')") ]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment