public function index() { $user = Auth::user(); $products = Product::getUserProducts(); $sold = Product::getSoldProducts(); return view('dashboard.index')->withUser($user)->withProducts($products)->withSold($sold); }