Customer and Vendor list page n+1 media issue solved..

This commit is contained in:
Cüneyt Şentürk
2023-08-11 13:05:57 +03:00
parent 6539df1f1f
commit a30ebc3b9f
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class Vendors extends Controller
*/
public function index()
{
$vendors = Contact::with('bills.histories', 'bills.totals', 'bills.transactions', 'media')->vendor()->collect();
$vendors = Contact::with('media', 'bills.histories', 'bills.totals', 'bills.transactions', 'bills.media')->vendor()->collect();
return $this->response('purchases.vendors.index', compact('vendors'));
}