How mahdihasan2011/pos works
This appears to be a modular retail management application: staff maintain catalogues and customers, record purchases and sales through point of sale, and review reports. The README is the stock Laravel framework README, so it does not document these product capabilities. The graph uses sampled controller excerpts and SOURCE INDEX references for evidenced data access; unsampled module routing and domain behavior are shown only as unverified entry points, not as an invented call chain.
Main entry points: PosController.php Point of sale · PurchaseController.php Purchase reports · ProductController.php Product catalogue · UserController.php Users and roles
Components 28
Retail operations
- Point of sale
Modules/Pos/Http/Controllers/PosController.php - Purchase entry
Modules/Pos/Http/Controllers/PurchaseController.php - Stock management
Modules/Pos/Http/Controllers/StockController.php - Order management
Modules/Order/Http/Controllers/OrderController.php - Sales records
app/Model/Sale.php - Cart records
app/Model/Cart.php - Sale items
app/Model/SaleItem.php - Stock records
app/Model/Stock.php
Catalog and accounts
- Product catalogue
Modules/Product/Http/Controllers/ProductController.php - Product records
app/Model/Product.php - Categories
app/Model/Category.php - Customer and supplier records
Modules/Merchant/Http/Controllers/CustomerController.php - Customer records
app/Model/Customer.php - Company records
app/Model/Company.php - Business settings
app/Model/Setting.php - Expenses and discounts
Modules/Account/Http/Controllers/ExpenseController.php - Users and roles
Modules/User/Http/Controllers/UserController.php - User records
app/Model/User.php - Permissions
app/Model/Permission.php
Reporting
- Purchase reports
Modules/Report/Http/Controllers/PurchaseController.php - Purchase records
app/Model/Purchase.php - Purchase items
app/Model/PurchaseItem.php - Supplier records
app/Model/Supplier.php
Application platform
- Route provider
app/Providers/RouteServiceProvider.php - Base controller
app/Http/Controllers/Controller.php - Frontend pages
Modules/Frontend/Http/Controllers/FrontendController.php - Client pages
Modules/Client/Http/Controllers/ClientController.php
Other components
- Staff user
Connections 25
- Staff user → Point of sale: uses
- Staff user → Product catalogue: maintains
- Staff user → Purchase entry: records
- Staff user → Purchase reports: reviews
- Point of sale → Sales records: reads and writes
Modules/Pos/Http/Controllers/PosController.php - Point of sale → Cart records: reads and writes
Modules/Pos/Http/Controllers/PosController.php - Point of sale → Sale items: writes
Modules/Pos/Http/Controllers/PosController.php - Point of sale → Stock records: reads and updates
Modules/Pos/Http/Controllers/PosController.php - Point of sale → Customer records: reads and updates
Modules/Pos/Http/Controllers/PosController.php - Point of sale → Categories: reads
Modules/Pos/Http/Controllers/PosController.php - Point of sale → Product records: reads
Modules/Pos/Http/Controllers/PosController.php - Point of sale → Business settings: reads
Modules/Pos/Http/Controllers/PosController.php - Product catalogue → Product records: creates and updates
Modules/Product/Http/Controllers/ProductController.php - Product catalogue → Categories: reads
Modules/Product/Http/Controllers/ProductController.php - Customer and supplier records → Customer records: reads and writes
Modules/Merchant/Http/Controllers/CustomerController.php - Users and roles → User records: reads and updates
Modules/User/Http/Controllers/UserController.php - Users and roles → Permissions: assigns roles
Modules/User/Http/Controllers/UserController.php - Purchase reports → Purchase records: queries
Modules/Report/Http/Controllers/PurchaseController.php - Purchase reports → Purchase items: queries
Modules/Report/Http/Controllers/PurchaseController.php - Purchase reports → Supplier records: reads
Modules/Report/Http/Controllers/PurchaseController.php - Purchase reports → Company records: reads
Modules/Report/Http/Controllers/PurchaseController.php - Route provider → Staff user: routes requests
- Purchase entry → Purchase records: records purchases
- Stock management → Stock records: manages stock
- Order management → Sales records: handles orders