Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit 784a6b7

Browse files
committed
Hide all products correctly
1 parent b87009b commit 784a6b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Http/Controllers/ReweController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function index(): Renderable {
2222
->join('rewe_bon_positions', 'rewe_bon_positions.bon_id', 'rewe_bons.id')
2323
->join('rewe_products', 'rewe_products.id', 'rewe_bon_positions.product_id')
2424
->where('rewe_bons.user_id', auth()->user()->id)
25+
->where('rewe_products.hide', 0)
2526
->groupBy('rewe_products.id')
2627
->select('rewe_products.*', DB::raw('COUNT(*) as cnt'))
2728
->orderByDesc('cnt')

0 commit comments

Comments
 (0)