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
| Component | Items |
|---|---|
| Models (9) | Product, Category, Attribute, AttributeOption, Brand, ProductImage, ProductReview, ProductAttributeValue, InventoryAdjustment |
| Admin Controllers (7) | ProductController, CategoryController, AttributeController, BrandController, ReviewController, ProductAiController, ProductImageController |
| Services | AiProductDescriptionService |
| Routes | admin.php, web.php |
Cart — Cartxis\Cart
| Component | Items |
|---|---|
| Models (2) | Cart, CartItem |
| Controllers | CartController (web), Api/CartController (API) |
| Services (2) | CartShippingCalculator, CartTaxCalculator |
| Routes | web.php, api.php |
Shop — Cartxis\Shop
| Component | Items |
|---|---|
| Models (4) | Address, Order, OrderItem |
| Controllers | HomeController, 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 |
| Config | shop.php (homepage settings, featured products count, hero block config) |
| Routes | web.php, api.php |
Shop is the only package that fully implements the Repository Pattern with Contracts — interfaces are bound to implementations via ServiceProvider::registerRepositories().