How vrishbhansingh/crm works
This Laravel application appears to be a multi-tenant CRM with a platform-admin control plane. A representative workflow is lead management: a user submits or updates a lead, the controller coordinates lead services and models, and tenant scoping and lead scoring apply during persistence. The tree also documents sales pipelines, campaign messaging, WhatsApp, and tenant provisioning/administration. Source excerpts are limited, so several capability nodes are included based on the file tree, but their internal relationships are not asserted.
Main entry points: LeadController.php Lead Workflow · ProvisionTenantDatabases.php Provision Command · Lead.php Lead Records · TenantConnectionManager.php Tenant Connection
Components 23
CRM and Sales
- Lead Workflow
app/Http/Controllers/LeadController.php - Lead Records
app/Models/Lead.php - Lead Scoring
app/Domain/Leads/LeadScoringService.php - Duplicate Checks
app/Services/LeadUniquenessService.php - Lead Import
app/Imports/LeadsImport.php - Import Report
app/Exports/LeadImportReportExport.php - Sales Pipeline
app/Models/Pipeline.php - Pipeline Stages
app/Models/PipelineStage.php - Deals
app/Models/Deal.php - Lead Webhooks
app/Http/Controllers/WebhookLeadController.php
Tenant Platform
- Tenant Context
app/Support/TenantContext.php - Tenant Registry
app/Models/Tenant.php - Tenant Connection
app/Tenancy/TenantConnectionManager.php - Database Provisioning
app/Tenancy/TenantDatabaseProvisioner.php - Provision Command
app/Console/Commands/ProvisionTenantDatabases.php - Tenant Administration
app/Http/Controllers/Admin/TenantController.php
Campaign Messaging
- Email Campaigns
app/Http/Controllers/Admin/EmailCampaignController.php - Campaign Sender
app/Services/CampaignSender.php - Email Job
app/Jobs/SendCampaignEmailJob.php - WhatsApp Messaging
app/Services/WhatsApp/WhatsAppMessageService.php
Web Runtime
- Application Routes
routes/app.php - Laravel Runtime
app/Http/Controllers/Controller.php
Other components
- CRM User
Connections 16
- CRM User → Application Routes: submits requests
- Application Routes → Lead Workflow: routes requests
routes/app.php - Lead Workflow → Lead Records: creates and updates
app/Http/Controllers/LeadController.php - Lead Workflow → Lead Scoring: scores leads
- Lead Workflow → Duplicate Checks: checks duplicates
app/Http/Controllers/LeadController.php - Lead Records → Tenant Context: scopes by tenant
- Lead Workflow → Lead Import: imports leads
app/Http/Controllers/LeadController.php - Lead Workflow → Import Report: exports results
app/Http/Controllers/LeadController.php - Sales Pipeline → Pipeline Stages: creates stages
app/Models/Pipeline.php - Provision Command → Database Provisioning: provisions database
app/Console/Commands/ProvisionTenantDatabases.php - Provision Command → Tenant Registry: loads tenant
app/Console/Commands/ProvisionTenantDatabases.php - Database Provisioning → Tenant Connection: activates connection
app/Tenancy/TenantDatabaseProvisioner.php - Tenant Connection → Tenant Registry: loads tenant details
app/Tenancy/TenantConnectionManager.php - Email Campaigns → Campaign Sender: sends campaigns
- Campaign Sender → Email Job: dispatches email
- WhatsApp Messaging → CRM User: sends messages