app/Http/Controllers/Seller/SellerProductController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index(User $seller)
    {
        $products = $seller->products;
        return $this->showAll(new ProductCollection($products));
    }
public function index ( User $ seller ) { $ products = $ seller -> products ; return $ this -> showAll ( new ProductCollection ( $ products ) ) ; }
Display a listing of the resource.
Display a listing of the resource .