Adding line to remove soft deleted objects from returned results, so it falls in line with using eloquent
This commit is contained in:
@ -99,6 +99,7 @@ abstract class BaseSearchDriver implements SearchDriverInterface
|
||||
{
|
||||
$this->query = \DB::table($this->table)
|
||||
->select($this->columns)
|
||||
->where('deleted_at',NULL)
|
||||
->addSelect($this->buildSelectQuery($this->searchFields))
|
||||
->orderBy($this->relevanceFieldName, 'desc')
|
||||
->having($this->relevanceFieldName, '>', 0);
|
||||
|
Reference in New Issue
Block a user