From f43b251d320746fd9818370b9cb3ace0e7588efb Mon Sep 17 00:00:00 2001 From: Max Sky Date: Mon, 29 May 2023 23:05:51 +0800 Subject: [PATCH] Fixed escaped String for JSON_CONTAINS (#47244) --- src/Illuminate/Database/Query/Grammars/Grammar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Database/Query/Grammars/Grammar.php b/src/Illuminate/Database/Query/Grammars/Grammar.php index e15c55644070..cd3a0c0fa5d0 100755 --- a/src/Illuminate/Database/Query/Grammars/Grammar.php +++ b/src/Illuminate/Database/Query/Grammars/Grammar.php @@ -620,7 +620,7 @@ protected function compileJsonContains($column, $value) */ public function prepareBindingForJsonContains($binding) { - return json_encode($binding); + return json_encode($binding, JSON_UNESCAPED_UNICODE); } /**