How lehaziq/proerp works
ProCore ERP is a Laravel modular-monolith for company-scoped business operations. Users work through a Blade web interface or Sanctum API; the product covers customer and supplier records, inventory, invoices, payments, accounting, approvals, reporting, OCR, and dashboards. The README describes services as the business-logic layer and documents invoice and payment posting, stock deduction, and reporting capabilities. Many controller-to-service calls and integrations were not sampled, so those links are omitted or marked unverified rather than presented as confirmed call flow.
Main entry points: Models ERP Records · web.php Web Routes · ProductController.php Product Catalog · InvoiceService.php Invoicing
Components 24
Access and Interfaces
- Web Routes
routes/web.php - API Routes
routes/api.php - Blade ERP UI
resources/views - API Controllers
app/Http/Controllers/Api - Authentication
app/Http/Controllers/Auth
Business Operations
- Customer CRM
app/Http/Controllers/CustomerController.php - Supplier Records
app/Http/Controllers/SupplierController.php - Product Catalog
app/Http/Controllers/ProductController.php - Inventory
app/Services/InventoryService.php - Invoicing
app/Services/InvoiceService.php - OCR Uploads
app/Services/OcrService.php - AI Context
app/Services/AiContextService.php
Finance and Oversight
- Payments
app/Services/PaymentService.php - Accounting
app/Services/AccountingService.php - Approvals
app/Services/ApprovalService.php - Reports
app/Services/ReportService.php - Dashboard
app/Services/DashboardService.php
Shared Platform
- Company and Branch
app/Models/CompanyProfile.php - Audit Logging
app/Services/AuditService.php - ERP Records
app/Models - Notifications
app/Notifications/ErpAlertNotification.php - Scheduled ERP Tasks
app/Console/Commands
Other components
- ERP User
- API Client
Connections 27
- ERP User → Web Routes: uses
README.md - Web Routes → Blade ERP UI: serves
README.md - API Client → API Routes: calls
README.md - API Routes → API Controllers: routes
- Web Routes → Authentication: routes
- Web Routes → Customer CRM: routes
- Web Routes → Product Catalog: routes
- API Controllers → Customer CRM: provides API
README.md - API Controllers → Product Catalog: provides API
README.md - Customer CRM → ERP Records: uses records
app/Http/Controllers/CustomerController.php - Supplier Records → ERP Records: uses records
app/Http/Controllers/SupplierController.php - Product Catalog → ERP Records: uses records
app/Http/Controllers/ProductController.php - Product Catalog → Audit Logging: logs changes
app/Http/Controllers/ProductController.php - Company and Branch → ERP Records: scopes records
app/Models/Concerns/BelongsToCompany.php - Invoicing → ERP Records: uses records
- Payments → ERP Records: uses records
- Accounting → ERP Records: posts entries
app/Services/AccountingService.php - Invoicing → Inventory: deducts stock
README.md - Invoicing → Accounting: posts journals
README.md - Payments → Accounting: posts journals
README.md - Approvals → Notifications: sends alerts
app/Services/ApprovalService.php - Approvals → Audit Logging: records actions
app/Services/ApprovalService.php - Reports → ERP Records: reports on
- Dashboard → ERP Records: summarizes
- OCR Uploads → ERP Records: stores uploads
README.md - AI Context → ERP Records: builds context
app/Services/AiContextService.php - Scheduled ERP Tasks → Notifications: checks alerts