'with discount' is back

This commit is contained in:
Noah Lancien 2023-07-11 11:01:31 +02:00
parent 7cf5db11a6
commit ca78be22fd

View file

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