public function show(User $user) { if (!$user->isVerified()) { abort(404); } $products = $this->productRepository->whereSeller($user)->scopes('active')->with('image', 'categories')->paginate(10); return view('user::__front.show', compact('user', 'products')); }
public function show(Shop $shop) { /*if (! $shop->isVerified()) { abort(404); }*/ $products = $this->productRepository->whereSeller($shop)->scopes('active')->with('image', 'categories')->paginate(10); return view('shop::__front.shops.show', compact('shop', 'products')); }