How mohebhemaya/fastcrm works
Fastcrm is a driver-operations CRM with a frontend and Laravel API. Staff manage drivers, imports, questionnaires, work orders, exports, and WhatsApp communications; the central dispatch workflow matches drivers to an order, sends offers, and tracks responses and follow-up. The graph reflects documented and indexed backend relationships. The README provides no capability detail, and several frontend and backend subsystems are unsampled, so their links are shown only where evidence supports them or omitted.
Main entry points: WorkOrderController.php Work order management · DriverMatcher.php Driver matching · ProcessWebhookEventJob.php Webhook processing · WorkOrderFollowUpService.php Outcomes and follow-up
Components 20
Staff interface
- CRM frontend
frontend/src/App.tsx
Driver operations
- Laravel API
backend/routes/api.php - Driver records
backend/app/Models/Driver.php - Driver imports
backend/app/Jobs/ParseImportJob.php - Questionnaires
backend/app/Models/Question.php - Exports and reports
backend/app/Services/ExportService.php
Orders and dispatch
- Work order management
backend/app/Http/Controllers/Api/WorkOrderController.php - Driver matching
backend/app/Services/DriverMatcher.php - Order lifecycle
backend/app/Services/WorkOrderService.php - Outcomes and follow-up
backend/app/Services/WorkOrderFollowUpService.php - Order recipients
backend/app/Models/WorkOrderRecipient.php
WhatsApp messaging
- Webhook intake
backend/app/Http/Controllers/WebhookController.php - Webhook processing
backend/app/Jobs/ProcessWebhookEventJob.php - Inbound routing
backend/app/Services/InboundMessageRouter.php - Delivery status updates
backend/app/Services/WebhookStatusUpdater.php - Message sending
backend/app/Services/MessageSender.php - Queued message delivery
backend/app/Jobs/SendWhatsAppMessageJob.php - WhatsApp provider
backend/app/Contracts/WhatsAppProvider.php
Other components
- Operations staff
Connections 17
- Operations staff → CRM frontend: uses
- CRM frontend → Laravel API: requests data
- Work order management → Order lifecycle: delegates
backend/app/Http/Controllers/Api/WorkOrderController.php - Work order management → Driver matching: requests matches
backend/app/Http/Controllers/Api/WorkOrderController.php - Work order management → Message sending: sends offers
backend/app/Http/Controllers/Api/WorkOrderController.php - Driver matching → Driver records: queries
backend/app/Services/DriverMatcher.php - Driver matching → Questionnaires: filters by answers
backend/app/Services/DriverMatcher.php - Order lifecycle → Order recipients: assigns drivers
- Outcomes and follow-up → Order recipients: updates outcomes
backend/app/Services/WorkOrderFollowUpService.php - Outcomes and follow-up → Driver records: updates status
backend/app/Services/WorkOrderFollowUpService.php - Webhook intake → Webhook processing: queues events
backend/app/Http/Controllers/WebhookController.php - Webhook processing → Inbound routing: routes messages
backend/app/Jobs/ProcessWebhookEventJob.php - Webhook processing → Delivery status updates: updates statuses
backend/app/Jobs/ProcessWebhookEventJob.php - Message sending → Queued message delivery: dispatches
backend/app/Services/MessageSender.php - Queued message delivery → WhatsApp provider: delivers through
- WhatsApp → Webhook intake: posts events
- WhatsApp provider → WhatsApp: connects to