Ejemplo n.º 1
0
 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'));
 }
Ejemplo n.º 2
0
 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'));
 }