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);