protected function applySearchToTableQuery(Builder $query): Builder
{
$this->applyColumnSearchesToTableQuery($query);
if (filled($search = $this->getTableSearch())) {
$meiliBuilder = Book::search($search);
$query->whereIn('id', $meiliBuilder->keys());
// Already tried this but still not working
$this->tableSortColumn = null;
$this->tableSortDirection = null;
}
return $query;
}
protected function applySearchToTableQuery(Builder $query): Builder
{
$this->applyColumnSearchesToTableQuery($query);
if (filled($search = $this->getTableSearch())) {
$meiliBuilder = Book::search($search);
$query->whereIn('id', $meiliBuilder->keys());
// Already tried this but still not working
$this->tableSortColumn = null;
$this->tableSortDirection = null;
}
return $query;
}