diff --git a/src/Engines/MySQLEngine.php b/src/Engines/MySQLEngine.php index fb0b12b..87f17c1 100644 --- a/src/Engines/MySQLEngine.php +++ b/src/Engines/MySQLEngine.php @@ -70,8 +70,8 @@ public function search(Builder $builder) $query = $query->selectRaw(DB::raw($mode->buildSelectColumns($builder)), $params); } - if($builder->callback){ - $query = call_user_func($builder->callback, $query, $this); + if($builder->queryCallback){ + $query = call_user_func($builder->queryCallback, $query, $this); } $result['count'] = $query->count();