'with discount' is back
This commit is contained in:
parent
7cf5db11a6
commit
ca78be22fd
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue