How angkosal/laravel-pos works
This Laravel POS application supports a cashier workflow from product selection and cart management through order creation, stock reduction, and payment recording. It also covers inventory purchases (which can increase stock), product and customer/supplier management, order history, dashboard summaries, and store settings. The graph reflects sampled controller/model behavior and README-described capabilities; some routes and UI wiring were not sampled, so those links are omitted.
Main entry points: PurchaseController.php Purchase processing · OrderController.php Order checkout · Product.php Products and stock · HomeController.php Sales dashboard
Components 26
Sales workflow
- Sales cart
resources/js/components/Cart.jsx - Cart handling
app/Http/Controllers/Pos/CartController.php - Order checkout
app/Http/Controllers/Pos/OrderController.php - Orders and payments
app/Models/Order.php - Order items
app/Models/OrderItem.php - Payments
app/Models/Payment.php - Order history
resources/views/orders
Inventory operations
- Purchase cart
resources/js/components/Purchase.jsx - Purchase cart handling
app/Http/Controllers/Inventory/PurchaseCartController.php - Purchase processing
app/Http/Controllers/Inventory/PurchaseController.php - Purchases
app/Models/Purchase.php - Purchase items
app/Models/PurchaseItem.php - Purchase receipts
resources/views/purchases/receipt.blade.php - Products and stock
app/Models/Product.php - Product management
app/Http/Controllers/Inventory/ProductController.php - Product screens
resources/views/products
Business management
- Customer records
app/Models/Customer.php - Customer management
app/Http/Controllers/Management/CustomerController.php - Supplier records
app/Models/Supplier.php - Supplier management
app/Http/Controllers/Management/SupplierController.php - Sales dashboard
app/Http/Controllers/Admin/HomeController.php - Store settings
app/Models/Setting.php - Settings management
app/Http/Controllers/Settings/SettingController.php
Application and data
- Staff account
app/Models/User.php - Laravel application
bootstrap/app.php
Other components
- Cashier
Connections 26
- Cashier → Sales cart: uses
- Sales cart → Cart handling: manages cart
- Cart handling → Products and stock: reads products
app/Http/Controllers/Pos/CartController.php - Order checkout → Orders and payments: creates order
app/Http/Controllers/Pos/OrderController.php - Order checkout → Order items: creates items
app/Http/Controllers/Pos/OrderController.php - Order checkout → Products and stock: reduces stock
app/Http/Controllers/Pos/OrderController.php - Order checkout → Payments: records payment
app/Http/Controllers/Pos/OrderController.php - Order checkout → Staff account: reads cart
app/Http/Controllers/Pos/OrderController.php - Order history → Order checkout: displays history
- Purchase cart → Purchase cart handling: manages cart
- Purchase cart handling → Products and stock: updates cart
app/Http/Controllers/Inventory/PurchaseCartController.php - Purchase processing → Purchases: creates purchases
app/Http/Controllers/Inventory/PurchaseController.php - Purchase processing → Purchase items: creates items
app/Http/Controllers/Inventory/PurchaseController.php - Purchase processing → Products and stock: adjusts stock
app/Http/Controllers/Inventory/PurchaseController.php - Purchase processing → Supplier records: loads suppliers
app/Http/Controllers/Inventory/PurchaseController.php - Purchase processing → Staff account: uses purchase cart
app/Http/Controllers/Inventory/PurchaseController.php - Purchase processing → Purchase receipts: renders receipt
app/Http/Controllers/Inventory/PurchaseController.php - Product management → Products and stock: manages products
- Product screens → Product management: presents screens
- Customer management → Customer records: manages customers
app/Http/Controllers/Management/CustomerController.php - Supplier management → Supplier records: manages suppliers
- Sales dashboard → Orders and payments: summarizes sales
app/Http/Controllers/Admin/HomeController.php - Sales dashboard → Products and stock: summarizes products
app/Http/Controllers/Admin/HomeController.php - Sales dashboard → Customer records: reads customers
app/Http/Controllers/Admin/HomeController.php - Settings management → Store settings: manages settings
app/Http/Controllers/Settings/SettingController.php - Laravel application → Staff account: serves application