diff --git a/src/Illuminate/Database/Query/Grammars/Grammar.php b/src/Illuminate/Database/Query/Grammars/Grammar.php index 38ce0c265b1a..c3d5e5f4c606 100755 --- a/src/Illuminate/Database/Query/Grammars/Grammar.php +++ b/src/Illuminate/Database/Query/Grammars/Grammar.php @@ -499,11 +499,9 @@ protected function whereRowValues(Builder $query, $where) */ protected function whereJsonContains(Builder $query, $where) { - $column = $this->wrap($where['column']); - - $value = $this->parameter($where['value']); - - return $this->compileJsonContains($column, $value); + return $this->compileJsonContains( + $this->wrap($where['column']), $this->parameter($where['value']) + ); } /** @@ -516,7 +514,7 @@ protected function whereJsonContains(Builder $query, $where) */ protected function compileJsonContains($column, $value) { - throw new RuntimeException('The database engine in use is not yet supported.'); + throw new RuntimeException('This database engine does not support JSON contains operations.'); } /**