Skip to content

Commit

Permalink
Orwhere not where
Browse files Browse the repository at this point in the history
  • Loading branch information
sciku1 committed Dec 14, 2017
1 parent e1df602 commit 2b6dd42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Macros/against.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

$this->search = $search;
$query = "MATCH ($match) AGAINST (? {$modeSql})";
$this->whereRaw($query, [$search]);
$this->orWhereRaw($query, [$search]);
$this->orderByRaw("($query) $ordering", [$search]);

}
Expand Down

0 comments on commit 2b6dd42

Please sign in to comment.