How facundomassa/stock_system_laravel works
StockSystem is an internal, multi-warehouse inventory web application. Its main user workflow is managing articles and warehouse stock, recording stock movements and transfers, and tracking the resulting remitos through pending receipt to completion. It also supports user permissions, imports, dashboard/reporting, and stock alerts. The graph reflects README capabilities and explicit source-index or excerpt references; unsampled controller and routing details are not inferred beyond documented functionality.
Main entry points: Stockcenter.php Warehouses · Refer.php Remitos · Movement.php Stock movements · Stock.php Warehouse stock
Components 21
Web workflows
- Web workflows
app/Http/Controllers/Controller.php - CSV imports
app/Http/Controllers/ImportController.php - Remito handling
app/Http/Controllers/ReferController.php
Inventory domain
- Articles
app/Models/Article.php - Warehouse stock
app/Models/Stock.php - Warehouses
app/Models/Stockcenter.php - Directions
app/Models/Direction.php - People
app/Models/Person.php
Transfers and remitos
- Stock movements
app/Models/Movement.php - Remitos
app/Models/Refer.php - Remito lifecycle
app/Services/ReferService.php - Stock operations
app/Services/StockService.php
Insights and access
- Dashboard and reports
app/Services/DashboardService.php - Users and roles
app/Models/User.php - Operations
app/Models/Operation.php - Permissions
app/Models/Permission.php - Stock alert event
app/Events/StockAlertUpdated.php - Alert listener
app/Listeners/SendStockAlertNotification.php - Stock alert notification
app/Notifications/StockAlertNotification.php
Other components
- Staff user
- MySQL database
Connections 43
- Staff user → Web workflows: manages inventory
- Staff user → Remito handling: tracks remitos
- Staff user → CSV imports: imports data
app/Http/Controllers/ImportController.php - CSV imports → Articles: creates articles
app/Http/Controllers/ImportController.php - CSV imports → Directions: creates directions
app/Http/Controllers/ImportController.php - CSV imports → People: creates people
app/Http/Controllers/ImportController.php - Remito handling → Remito lifecycle: delegates to
app/Http/Controllers/ReferController.php - Remito lifecycle → Stock operations: adjusts stock
app/Services/ReferService.php - Remito lifecycle → Remitos: reads and updates
app/Services/ReferService.php - Remito lifecycle → Stock movements: loads movements
app/Services/ReferService.php - Remito lifecycle → Warehouses: queries warehouses
app/Services/ReferService.php - Stock operations → Warehouse stock: updates stock
app/Services/StockService.php - Stock operations → Remitos: uses remito data
app/Services/StockService.php - Stock operations → Stock movements: uses movement data
app/Services/StockService.php - Stock operations → Articles: loads articles
app/Services/StockService.php - Stock operations → Warehouses: loads warehouses
app/Services/StockService.php - Dashboard and reports → Warehouse stock: queries stock
app/Services/DashboardService.php - Dashboard and reports → Stock movements: aggregates movements
app/Services/DashboardService.php - Dashboard and reports → Remitos: measures dispatch
app/Services/DashboardService.php - Dashboard and reports → Articles: resolves article names
app/Services/DashboardService.php - Dashboard and reports → Warehouses: queries warehouses
app/Services/DashboardService.php - Dashboard and reports → Users and roles: reads notifications
app/Services/DashboardService.php - Articles → Warehouse stock: has stock records
app/Models/Article.php - Warehouse stock → Warehouses: belongs to
app/Models/Stock.php - Warehouses → Operations: belongs to
app/Models/Stockcenter.php - Warehouses → Directions: belongs to
app/Models/Stockcenter.php - Warehouses → People: belongs to
app/Models/Stockcenter.php - Remitos → Warehouses: references warehouses
app/Models/Refer.php - Remitos → Users and roles: references creator
app/Models/Refer.php - Remitos → Stock movements: has movements
app/Models/Refer.php - Stock movements → Remitos: references remito
app/Models/Movement.php - Stock movements → Articles: references article
app/Models/Movement.php - Stock movements → Warehouse stock: references stock
app/Models/Movement.php - Users and roles → Operations: resolves allowed operations
app/Models/User.php - Users and roles → Permissions: has roles and permissions
app/Models/User.php - Users and roles → Warehouses: belongs to warehouse
app/Models/User.php - Stock alert event → Warehouse stock: references stock
app/Events/StockAlertUpdated.php - Alert listener → Stock alert event: handles event
app/Providers/EventServiceProvider.php - Alert listener → Stock alert notification: sends notification
app/Listeners/SendStockAlertNotification.php - Alert listener → Users and roles: notifies users
app/Listeners/SendStockAlertNotification.php - Articles → MySQL database: persists records
- Warehouse stock → MySQL database: persists quantities
- Remitos → MySQL database: persists remitos