diff --git a/src/Adapters/QueryBuilder.php b/src/Adapters/QueryBuilder.php index 44f8872..6151b8b 100644 --- a/src/Adapters/QueryBuilder.php +++ b/src/Adapters/QueryBuilder.php @@ -19,7 +19,7 @@ public function getResponse() { $total = $builder->getPaginate(); $this->bind('global_search', function($column, $search) { - $this->builder->orWhere("{$column} LIKE ?0", ["%{$search}%"]); + $this->builder->orWhere("{$column} LIKE :key_{$column}:", ["key_{$column}" => "%{$search}%"]); }); $this->bind('column_search', function($column, $search) {