How ken05com/tech-components-digital-store works
TECH COMPONENTS is a Laravel catalog and inventory dashboard with a customer-facing storefront, cart and checkout, sales tracking, and role-based administration. Requests enter through web routes and are dispatched to controllers; catalog controllers use repositories to manage products and categories, while the storefront and management features cover browsing, stock, deleted items, users, and settings. README documents these capabilities, but several controllers and views were not sampled, so their internal calls are not expanded. The graph emphasizes documented routes and source-visible repository behavior.
Main entry points: web.php Web routes · ProductRepository.php Product repository · CategoryRepository.php Category repository · ProductController.php Product controller
Components 27
Request handling
- Web routes
routes/web.php
Catalog management
- Product controller
app/Http/Controllers/ProductController.php - Category controller
app/Http/Controllers/CategoryController.php - Product repository
app/Catalog/ProductRepository.php - Category repository
app/Catalog/CategoryRepository.php - Product value object
app/Catalog/Product.php - Category record
app/Catalog/CategoryRecord.php - Seed catalog data
app/Catalog/CatalogData.php
Store and sales
- Storefront controller
app/Http/Controllers/StorefrontController.php - Cart controller
app/Http/Controllers/CartController.php - Checkout controller
app/Http/Controllers/CheckoutController.php - Sales controller
app/Http/Controllers/SaleController.php - Cart service
app/Cart/CartService.php - Sale repository
app/Sales/SaleRepository.php - Sales records
app/Sales/SaleItem.php
Administration
- Dashboard controller
app/Http/Controllers/DashboardController.php - Inventory controller
app/Http/Controllers/InventoryController.php - Deleted items controller
app/Http/Controllers/DeletedItemsController.php - Pages and settings
app/Http/Controllers/PageController.php - Settings repository
app/Settings/SettingRepository.php
Identity and access
- User controller
app/Http/Controllers/UserController.php - Login controller
app/Http/Controllers/Auth/LoginController.php - User repository
app/Auth/UserRepository.php - User and roles
app/Auth/User.php
Other components
- Shopper
- Dashboard user
- MySQL database
Connections 37
- Shopper → Web routes: requests pages
routes/web.php - Dashboard user → Web routes: requests pages
routes/web.php - Web routes → Product controller: dispatches product routes
routes/web.php - Web routes → Category controller: dispatches category routes
routes/web.php - Web routes → Storefront controller: dispatches storefront routes
routes/web.php - Web routes → Cart controller: dispatches cart routes
routes/web.php - Web routes → Checkout controller: dispatches checkout routes
routes/web.php - Web routes → Sales controller: dispatches sales routes
routes/web.php - Web routes → Dashboard controller: dispatches dashboard route
routes/web.php - Web routes → Inventory controller: dispatches inventory routes
routes/web.php - Web routes → Deleted items controller: dispatches deleted-item routes
routes/web.php - Web routes → Pages and settings: dispatches page routes
routes/web.php - Web routes → User controller: dispatches user routes
routes/web.php - Web routes → Login controller: dispatches login routes
routes/web.php - Product controller → Product repository: reads and updates
app/Http/Controllers/ProductController.php - Product controller → Category repository: loads categories
app/Http/Controllers/ProductController.php - Product controller → Product value object: uses product values
app/Http/Controllers/ProductController.php - Category controller → Category repository: manages categories
app/Http/Controllers/CategoryController.php - Category controller → Product repository: loads products
app/Http/Controllers/CategoryController.php - Storefront controller → Product repository: loads products
app/Http/Controllers/StorefrontController.php - Storefront controller → Category repository: loads categories
app/Http/Controllers/StorefrontController.php - Pages and settings → Product repository: loads catalog data
app/Http/Controllers/PageController.php - Pages and settings → Category repository: loads categories
app/Http/Controllers/PageController.php - Pages and settings → Settings repository: reads settings
app/Http/Controllers/PageController.php - Deleted items controller → Product repository: restores and deletes
app/Http/Controllers/DeletedItemsController.php - Deleted items controller → Category repository: loads categories
app/Http/Controllers/DeletedItemsController.php - Product repository → MySQL database: queries products
app/Catalog/ProductRepository.php - Category repository → MySQL database: queries categories
app/Catalog/CategoryRepository.php - Product repository → Category record: resolves categories
app/Catalog/ProductRepository.php - MySQL database → Product repository: hydrates products
app/Catalog/ProductRepository.php - Seed catalog data → Product value object: defines product values
app/Catalog/CatalogData.php - Sale repository → MySQL database: reads and writes sales
app/Sales/SaleRepository.php - Sale repository → Sales records: builds sale items
app/Sales/SaleRepository.php - User controller → User repository: manages users
app/Http/Controllers/UserController.php - User repository → MySQL database: queries users
app/Auth/UserRepository.php - User repository → User and roles: hydrates users
app/Auth/UserRepository.php - Login controller → User and roles: checks user role
app/Http/Controllers/Auth/LoginController.php