Documentation

Product, Cart & Shop

Product (9 models, 7 controllers), Cart (2 models), and Shop (repository pattern, 5 services)

Last updated: Feb 09, 2026

Product, Cart & Shop Packages

Product — Cartxis\Product

ComponentItems
Models (9)Product, Category, Attribute, AttributeOption, Brand, ProductImage, ProductReview, ProductAttributeValue, InventoryAdjustment
Admin Controllers (7)ProductController, CategoryController, AttributeController, BrandController, ReviewController, ProductAiController, ProductImageController
ServicesAiProductDescriptionService
Routesadmin.php, web.php

Cart — Cartxis\Cart

ComponentItems
Models (2)Cart, CartItem
ControllersCartController (web), Api/CartController (API)
Services (2)CartShippingCalculator, CartTaxCalculator
Routesweb.php, api.php

Shop — Cartxis\Shop

ComponentItems
Models (4)Address, Order, OrderItem
ControllersHomeController, ProductController, CategoryController, SearchController, NewsletterController, Account/(Dashboard, Order, Address, Profile, Wishlist), Checkout/CheckoutController, Api/SearchController
Services (5)HomeService, ProductService, CategoryService, CheckoutService, ShopService
Repositories (4)ProductRepository, CategoryRepository, OrderRepository, ShopRepository
Contracts (4)ProductRepositoryInterface, CategoryRepositoryInterface, OrderRepositoryInterface, ShopRepositoryInterface
Configshop.php (homepage settings, featured products count, hero block config)
Routesweb.php, api.php
Shop is the only package that fully implements the Repository Pattern with Contracts — interfaces are bound to implementations via ServiceProvider::registerRepositories().