Skip to content

Commit

Permalink
Merge pull request #163 from netzknecht/3.x
Browse files Browse the repository at this point in the history
Use `Taxon` interface instead of model
  • Loading branch information
fulopattila122 authored Oct 9, 2023
2 parents fa1c16e + 7cc40ba commit 621e647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Foundation/Search/ProductSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use Illuminate\Support\Collection;
use Konekt\Search\Facades\Search;
use Konekt\Search\Searcher;
use Vanilo\Foundation\Models\Taxon;
use Vanilo\Category\Contracts\Taxon;
use Vanilo\MasterProduct\Contracts\MasterProduct;
use Vanilo\MasterProduct\Models\MasterProductProxy;
use Vanilo\Product\Contracts\Product;
Expand Down Expand Up @@ -83,7 +83,7 @@ public function withinTaxon(Taxon $taxon): self
return $this;
}

public function orWithinTaxon(\Vanilo\Category\Contracts\Taxon $taxon): self
public function orWithinTaxon(Taxon $taxon): self
{
$this->productQuery->orWhereHas('taxons', function ($query) use ($taxon) {
$query->where('id', $taxon->id);
Expand Down

0 comments on commit 621e647

Please sign in to comment.