How adityashah7849/visiting-management-system works
This Laravel application provides multi-tenant visitor and visit management. Organization administrators provision tenants and users sign in; employees or reception staff submit visits for host approval, while gate staff validate QR passes and record entry or exit. The product also includes employee and visitor directories, configurable messaging, attendance, dashboards and reports, plus super-admin organization management. The graph reflects documented capabilities and sampled calls; routes and several controllers were not inspected, so uncertain connections are omitted.
Main entry points: TenantDatabaseService.php Tenant database service · GateController.php QR gate operations · Employee.php Employee records · Visit.php Visit records
Components 34
Tenant platform
- Web authentication
app/Http/Controllers/AuthController.php - API authentication
app/Http/Controllers/api/UserAuthController.php - Tenant connection middleware
app/Http/Middleware/ConnectTenantDatabase.php
Visit operations
- Visit requests and approval
app/Http/Controllers/api/visit/VisitController.php - Host approval
app/Http/Controllers/api/visit/VisitApprovalController.php - QR gate operations
app/Http/Controllers/api/visit/GateController.php - Visit workflow helpers
app/Http/Controllers/api/visit/Traits/VisitHelpers.php - Visit reporting
app/Http/Controllers/api/visit/VisitReportController.php - Transaction reporting
app/Http/Controllers/api/visit/ReportController.php - Visit records
app/Models/Visit.php - Visitor records
app/Models/Visitor.php - Visit visitor records
app/Models/VisitVisitor.php - Visit host records
app/Models/VisitHost.php - Visit transactions
app/Models/VisitTransaction.php
People and settings
- Employee and visitor APIs
app/Http/Controllers/api/VisitorController.php - Employee operations
app/Services/EmployeeService.php - Employee records
app/Models/Employee.php - Organization master data
app/Models/Master.php - Attendance
app/Services/AttendanceService.php - WhatsApp configuration API
app/Http/Controllers/api/WhatsappApiController.php - WhatsApp messaging
app/Services/WhatsAppService.php - Mail configuration
app/Http/Controllers/MailConfigController.php
Platform administration
- Organization management
app/Http/Controllers/superadmin/ClientController.php - Platform dashboard
app/Http/Controllers/superadmin/SuperAdminDashboardController.php - Company records
app/Models/Company.php
Tenant data layer
- Tenant registry
app/Models/Tenant.php - Tenant database service
app/Services/TenantDatabaseService.php - Tenant visit schema
app/Services/TenantVisitSchemaService.php - Tenant provisioning job
app/Jobs/ProvisionTenantDatabase.php
Other components
- Organization admin
- Employee / receptionist
- Gate staff
- Super admin
- WhatsApp provider
Connections 40
- Employee / receptionist → Web authentication: signs in
app/Http/Controllers/AuthController.php - Organization admin → Web authentication: signs in
app/Http/Controllers/AuthController.php - Web authentication → Tenant database service: connects tenant
app/Http/Controllers/AuthController.php - Web authentication → Tenant registry: looks up tenant
app/Http/Controllers/AuthController.php - Employee / receptionist → API authentication: uses API auth
app/Http/Controllers/api/UserAuthController.php - API authentication → Company records: loads company
app/Http/Controllers/api/UserAuthController.php - API authentication → Employee records: updates employee
app/Http/Controllers/api/UserAuthController.php - Tenant connection middleware → Tenant database service: connects tenant
app/Http/Middleware/ConnectTenantDatabase.php - Employee / receptionist → Visit requests and approval: submits visit
- Visit requests and approval → Visit records: manages visits
- Visit requests and approval → Visit workflow helpers: uses helpers
- Visit requests and approval → Host approval: routes approval
- Host approval → Visit records: updates status
- Gate staff → QR gate operations: scans QR
- QR gate operations → Visit workflow helpers: uses helpers
app/Http/Controllers/api/visit/GateController.php - QR gate operations → Visit records: validates visit
app/Http/Controllers/api/visit/GateController.php - QR gate operations → Visit visitor records: updates gate status
app/Http/Controllers/api/visit/GateController.php - QR gate operations → Visitor records: loads visitor
app/Http/Controllers/api/visit/GateController.php - QR gate operations → Visit transactions: records transaction
app/Http/Controllers/api/visit/GateController.php - Visit reporting → Visit records: reports visits
- Transaction reporting → Visit transactions: reports transactions
- Employee and visitor APIs → Employee operations: uses employee service
- Employee operations → Employee records: manages employees
app/Services/EmployeeService.php - Employee and visitor APIs → Visitor records: manages visitors
- Employee records → Organization master data: references masters
app/Models/Employee.php - Employee records → Visit host records: represents visit hosts
app/Models/Employee.php - Attendance → Employee records: uses employees
- WhatsApp configuration API → WhatsApp messaging: configures messaging
- WhatsApp messaging → WhatsApp provider: sends messages
- WhatsApp messaging → Visit records: uses visit context
app/Services/WhatsAppService.php - WhatsApp messaging → Visitor records: uses visitor context
app/Services/WhatsAppService.php - Organization admin → Mail configuration: configures mail
- Super admin → Organization management: manages organizations
app/Http/Controllers/superadmin/ClientController.php - Super admin → Platform dashboard: views dashboard
- Organization management → Company records: manages companies
app/Http/Controllers/superadmin/ClientController.php - Organization management → Tenant database service: provisions tenants
app/Http/Controllers/superadmin/ClientController.php - Tenant provisioning job → Tenant database service: provisions database
app/Jobs/ProvisionTenantDatabase.php - Tenant database service → Tenant registry: creates tenant entry
app/Services/TenantDatabaseService.php - Tenant database service → Company records: uses company
app/Services/TenantDatabaseService.php - Tenant database service → Tenant visit schema: uses schema service
app/Services/TenantDatabaseService.php