How soks22407-hub/laravel-computer-pos works
This Laravel application is a multi-channel retail and ecommerce system: shoppers browse products and manage carts, orders, and reviews, while staff use administrative and point-of-sale workflows. Routes dispatch requests to customer, staff, and CEO/admin controllers; Eloquent models represent catalog, order, user, and operational data. The tree also shows purchase requests, stock transactions, tasks, reporting, and merchandising capabilities. Several controller implementations are unsampled, so their internal data-flow links are omitted; route dispatch and the cited model/controller relationships are based on the provided index and excerpts.
Main entry points: web.php Web Routes · Product.php Products · AdminController.php Catalog Management · User.php Users
Components 34
Customer Commerce
- Shop Browsing
app/Http/Controllers/ShopController.php - Cart and Checkout
app/Http/Controllers/CartController.php - Customer Accounts
app/Http/Controllers/UserController.php - Wishlists
app/Http/Controllers/WishlistController.php - Product Reviews
app/Http/Controllers/ReviewController.php - Authentication
app/Http/Controllers/Auth/LoginController.php
Catalog and Merchandising
- Catalog Management
app/Http/Controllers/AdminController.php - CEO Management
app/Http/Controllers/CEOController.php
Retail Operations
- POS Sales
app/Http/Controllers/PosController.php - Employee POS
app/Http/Controllers/EmployeePOSController.php - CEO POS
app/Http/Controllers/CEOPosController.php - Stock Transactions
app/Http/Controllers/StockTransactionController.php - CEO Stock
app/Http/Controllers/CEOStockTransactionController.php - Purchase Requests
app/Http/Controllers/PurchaseRequestController.php
Staff Management
- Employee Workflows
app/Http/Controllers/EmployeeController.php - Permissions
app/Http/Controllers/PermissionController.php - Controller Base
app/Http/Controllers/Controller.php
Domain Data
- Products
app/Models/Product.php - Brands
app/Models/Brand.php - Categories
app/Models/Category.php - Product Attributes
app/Models/ProductAttribute.php - Product Variants
app/Models/ProductVariant.php - Review Records
app/Models/Review.php - Users
app/Models/User.php - Online Orders
app/Models/Order.php - Order Items
app/Models/OrderItem.php - Transactions
app/Models/Transaction.php - POS Orders
app/Models/PosOrder.php - POS Items
app/Models/PosOrderItem.php - Notifications
app/Models/Notification.php - Settings
app/Models/Setting.php - Tasks
app/Models/Task.php
Other components
- Shopper
- Web Routes
routes/web.php
Connections 45
- Shopper → Web Routes: requests
- Web Routes → Shop Browsing: dispatches
routes/web.php - Web Routes → Cart and Checkout: dispatches
routes/web.php - Web Routes → Customer Accounts: dispatches
routes/web.php - Web Routes → Wishlists: dispatches
routes/web.php - Web Routes → Product Reviews: dispatches
routes/web.php - Web Routes → Authentication: dispatches
routes/web.php - Web Routes → Catalog Management: dispatches
routes/web.php - Web Routes → CEO Management: dispatches
routes/web.php - Web Routes → POS Sales: dispatches
routes/web.php - Web Routes → Employee POS: dispatches
routes/web.php - Web Routes → CEO POS: dispatches
routes/web.php - Web Routes → Stock Transactions: dispatches
routes/web.php - Web Routes → CEO Stock: dispatches
routes/web.php - Web Routes → Purchase Requests: dispatches
routes/web.php - Web Routes → Employee Workflows: dispatches
routes/web.php - Web Routes → Permissions: dispatches
routes/web.php - Product Reviews → Review Records: creates and deletes
app/Http/Controllers/ReviewController.php - Catalog Management → Categories: queries and deletes
app/Http/Controllers/AdminController.php - Catalog Management → Products: queries products
app/Http/Controllers/AdminController.php - Catalog Management → Product Attributes: updates attributes
app/Http/Controllers/AdminController.php - CEO Management → Products: queries products
app/Http/Controllers/CEOController.php - CEO Management → Categories: queries and deletes
app/Http/Controllers/CEOController.php - Products → Brands: belongs to
app/Models/Product.php - Products → Categories: belongs to
app/Models/Product.php - Products → Product Attributes: has many
app/Models/Product.php - Products → Product Variants: has many
app/Models/Product.php - Products → Review Records: has many
app/Models/Product.php - Review Records → Users: belongs to
app/Models/Review.php - Review Records → Products: belongs to
app/Models/Review.php - Online Orders → Users: belongs to
app/Models/Order.php - Online Orders → Order Items: has many
app/Models/Order.php - Online Orders → Transactions: has one
app/Models/Order.php - POS Orders → POS Items: has many
app/Models/PosOrder.php - POS Orders → Users: cashier
app/Models/PosOrder.php - Users → Online Orders: has many
app/Models/User.php - Users → POS Orders: has many
app/Models/User.php - Tasks → Users: assigned user
app/Models/Task.php - Order Items → Online Orders: belongs to
app/Models/OrderItem.php - Order Items → Products: belongs to
app/Models/OrderItem.php - POS Items → POS Orders: belongs to
app/Models/PosOrderItem.php - POS Items → Products: belongs to
app/Models/PosOrderItem.php - Catalog Management → Controller Base: extends
app/Http/Controllers/AdminController.php - CEO Management → Notifications: reads notifications
app/Http/Controllers/CEOController.php - Catalog Management → Notifications: reads notifications
app/Http/Controllers/AdminController.php