Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon Juchno committed Sep 10, 2020
1 parent 7353f91 commit b872762
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Engines/MySQLEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function search(Builder $builder)
$model = $builder->model;
$query = $model::whereRaw($whereRawString, $params);
if ($mode->isFullText()) {
$query = $query->selectRaw(DB::raw($mode->buildSelectColumns($builder)), $params);
$query = $query->selectRaw(DB::raw($mode->buildSelectColumns($builder)), [$params[0]]);
}

if($builder->callback){
Expand Down Expand Up @@ -141,10 +141,10 @@ public function getTotalCount($results)
* Flush all of the model's records from the engine.
*
* @param \Illuminate\Database\Eloquent\Model $model
*
*
* @return void
*/
public function flush($model)
public function flush($model)
{
}

Expand Down

0 comments on commit b872762

Please sign in to comment.