How ericmuga/cm_weighing works
This Laravel application supports slaughter-floor receipt and weighing work, QA carcass grading, butchery/deboning, stock transfers, and customer/login workflows. A web request is routed to a controller, which performs domain operations and returns a view or report; controllers also read and write relational data. The excerpts show scale-service calls and several reporting exports. The README describes Laravel generally rather than documenting this application’s capabilities, and unsampled route/controller details are represented conservatively.
Main entry points: web.php Web routes · SlaughterController.php Slaughter workflow · QAController.php QA grading · StockController.php Stock and transfers
Components 25
Web entry
- Web routes
routes/web.php - Login
app/Http/Controllers/LoginController.php - Customer management
app/Http/Controllers/CustomerController.php
Slaughter operations
- Slaughter workflow
app/Http/Controllers/SlaughterController.php - Receipt completion event
app/Events/ReceiptsUploadCompleted.php - Grading action listener
app/Listeners/ToInsertForGradingActionListener.php - Slaughter reports
app/Exports/SlaughterSummaryExport.php - Offal reports
app/Exports/OffalsDataExportSummary.php - Slaughter screens
resources/views/slaughter/weigh.blade.php
QA grading
- QA grading
app/Http/Controllers/QAController.php - Grading rules
app/Models/CarcassGradingService.php - QA reports
app/Exports/QAGradingReportExport.php - Slaughter grading reports
app/Exports/SlaughterGradingReportExport.php - QA screens
resources/views/QA/grading-v2.blade.php
Production and stock
- Deboning workflow
app/Http/Controllers/ButcheryController.php - Deboning reports
app/Exports/DeboningReportSummaryExport.php - Stock and transfers
app/Http/Controllers/StockController.php - Transfer reports
app/Exports/IDTSummaryExport.php - Product catalogue
app/Models/Item.php - Butchery screens
resources/views/butchery/scale3.blade.php - Stock screens
resources/views/stocks/issue_transfers.blade.php
Shared services
- Application database
- Shared helpers
app/Models/Helpers.php
Other components
- Staff user
- Scale service
Connections 29
- Staff user → Web routes: submits requests
routes/web.php - Web routes → Login: routes to
routes/web.php - Web routes → Customer management: routes to
routes/web.php - Web routes → Slaughter workflow: routes to
routes/web.php - Web routes → QA grading: routes to
routes/web.php - Web routes → Deboning workflow: routes to
routes/web.php - Web routes → Stock and transfers: routes to
routes/web.php - Slaughter workflow → Slaughter screens: renders
app/Http/Controllers/SlaughterController.php - QA grading → QA screens: renders
app/Http/Controllers/QAController.php - Deboning workflow → Butchery screens: renders
app/Http/Controllers/ButcheryController.php - Stock and transfers → Stock screens: renders
app/Http/Controllers/StockController.php - Slaughter workflow → Application database: reads and writes
app/Http/Controllers/SlaughterController.php - QA grading → Application database: reads and writes
app/Http/Controllers/QAController.php - Deboning workflow → Application database: reads and writes
app/Http/Controllers/ButcheryController.php - Stock and transfers → Application database: reads and writes
app/Http/Controllers/StockController.php - Slaughter workflow → Receipt completion event: dispatches
app/Http/Controllers/SlaughterController.php - Grading action listener → Receipt completion event: handles
app/Listeners/ToInsertForGradingActionListener.php - Slaughter workflow → Offal reports: downloads
app/Http/Controllers/SlaughterController.php - Slaughter workflow → Slaughter reports: downloads
app/Http/Controllers/SlaughterController.php - QA grading → QA reports: downloads
app/Http/Controllers/QAController.php - QA grading → Slaughter grading reports: downloads
app/Http/Controllers/QAController.php - QA grading → Grading rules: uses grading rules
app/Http/Controllers/QAController.php - Deboning workflow → Deboning reports: downloads
app/Http/Controllers/ButcheryController.php - Stock and transfers → Transfer reports: downloads
app/Http/Controllers/StockController.php - Stock and transfers → Product catalogue: queries products
app/Http/Controllers/StockController.php - Slaughter workflow → Shared helpers: uses
app/Http/Controllers/SlaughterController.php - Deboning workflow → Shared helpers: uses
app/Http/Controllers/ButcheryController.php - Stock and transfers → Shared helpers: uses
app/Http/Controllers/StockController.php - Shared helpers → Scale service: calls over HTTP
app/Models/Helpers.php