From ca78be22fd0529c65dfc25c8b3c638e2248ecea2 Mon Sep 17 00:00:00 2001 From: Noah Lancien Date: Tue, 11 Jul 2023 11:01:31 +0200 Subject: [PATCH] 'with discount' is back --- app/Http/Controllers/Fo/TagController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Fo/TagController.php b/app/Http/Controllers/Fo/TagController.php index 115cf46..675740c 100644 --- a/app/Http/Controllers/Fo/TagController.php +++ b/app/Http/Controllers/Fo/TagController.php @@ -33,6 +33,7 @@ class TagController extends Controller { $products = Product::query() ->where('status', true) + ->with(['discount']) ->whereHas('tags', function ($q) use ($tag) { $q->where('id', $tag->id); })->paginate(12);