Created
October 31, 2017 06:15
-
-
Save raco/0ee2b0917a22fe67a4493d09b7fa96f3 to your computer and use it in GitHub Desktop.
Query Builder remove item from json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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