Skip to content

Commit ecb052c

Browse files
committed
Fixed QueryBuilder bug;
1 parent bd570f3 commit ecb052c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/QueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function getResponse() {
1919
$total = $builder->getPaginate();
2020

2121
$this->bind('global_search', function($column, $search) {
22-
$this->builder->orWhere("{$column} LIKE ?0", ["%{$search}%"]);
22+
$this->builder->orWhere("{$column} LIKE :key_{$column}:", ["key_{$column}" => "%{$search}%"]);
2323
});
2424

2525
$this->bind('column_search', function($column, $search) {

0 commit comments

Comments
 (0)