How parzibyte/sistema_ventas_laravel works
This Laravel 7 point-of-sale application supports user accounts, customer and product management, checkout with stock checks and decrementing, sales reporting, and thermal-ticket printing. The primary workflow is a user building a cart, completing a sale, and later viewing or printing the resulting sale. The README also documents an API consumed by an Android app. Edges reflect the supplied controller excerpts, SOURCE INDEX references, and README; API internals and several UI/controller relationships were not sampled, so those links are omitted or marked unverified.
Main entry points: web.php Web routes · VenderController.php Sale controller · api.php Mobile API · Venta.php Sale records
Components 18
Web and access
- Web routes
routes/web.php
Store management
- Product inventory
app/Producto.php - Customer records
app/Cliente.php - Product management
app/Http/Controllers/ProductosController.php - Customer management
app/Http/Controllers/ClientesController.php
Sales workflow
- Sale controller
app/Http/Controllers/VenderController.php - Checkout screen
resources/views/vender/vender.blade.php - Sale records
app/Venta.php - Sold items
app/ProductoVendido.php - Sales reports
app/Http/Controllers/VentasController.php - Sales report view
resources/views/ventas/ventas_index.blade.php - Thermal printer
API and accounts
- Authentication
app/Http/Controllers/AuthController.php - Mobile API
routes/api.php - Android app
- User management
app/Http/Controllers/UserController.php - User accounts
app/User.php
Other components
- Cashier
Connections 24
- Cashier → Web routes: uses
- Web routes → Sale controller: routes to
routes/web.php - Sale controller → Checkout screen: renders
app/Http/Controllers/VenderController.php - Sale controller → Product inventory: looks up, updates
app/Http/Controllers/VenderController.php - Sale controller → Customer records: loads
app/Http/Controllers/VenderController.php - Sale controller → Sale records: creates
app/Http/Controllers/VenderController.php - Sale controller → Sold items: creates
app/Http/Controllers/VenderController.php - Sale records → Sold items: has many
app/Venta.php - Sale records → Customer records: belongs to
app/Venta.php - Web routes → Product management: routes to
routes/web.php - Product management → Product inventory: uses
app/Http/Controllers/ProductosController.php - Web routes → Customer management: routes to
routes/web.php - Customer management → Customer records: uses
app/Http/Controllers/ClientesController.php - Web routes → Sales reports: routes to
routes/web.php - Sales reports → Sale records: queries
app/Http/Controllers/VentasController.php - Sales reports → Sales report view: renders
app/Http/Controllers/VentasController.php - Sales reports → Thermal printer: prints ticket
app/Http/Controllers/VentasController.php - Mobile API → Authentication: routes to
routes/api.php - Android app → Mobile API: consumes API
- Web routes → User management: routes to
routes/web.php - User management → User accounts: uses
app/Http/Controllers/UserController.php - Mobile API → Product inventory: exposes
routes/api.php - Mobile API → Customer records: exposes
routes/api.php - Mobile API → Sale records: exposes
routes/api.php