fix: 🐛 hide brands for unpublished products
This commit is contained in:
parent
caa157adaf
commit
a5dbb9ebc3
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ class ProductsController extends Controller
|
|||
|
||||
$brands = \collect(\App\Enums\ProductBrand::toArray())->filter(
|
||||
function (\App\Enums\ProductBrand $case) {
|
||||
return Product::query()->pluck('brand')->contains($case->value);
|
||||
return Product::query()->where('status', 1)->pluck('brand')->contains($case->value);
|
||||
}
|
||||
)->values();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue