How lorenzred/cloud works
This is a Laravel barangay health and resident-services application, despite its README being the stock Laravel introduction. The principal workflow is residents submitting household/verification information, followed by barangay health workers reviewing residents and recording consultations, medical or monitoring activity; role-specific dashboards and reports support BHW, BNS, barangay-captain and LGU work. Authentication also exposes token login, refresh and revocation. The route file is only partially excerpted, so several feature links are shown as unverified rather than asserted as observed calls.
Main entry points: web.php Web routes · AuthTokenController.php Token API · ResidentRequest.php Resident applications · Barangay.php Barangay boundaries
Components 24
Access and roles
- Web routes
routes/web.php - Token API
app/Http/Controllers/Api/AuthTokenController.php - Token service
app/Support/AuthTokenService.php - User accounts
app/Models/User.php
Resident services
- Resident applications
app/Models/ResidentRequest.php - Private uploads
app/Support/PrivateStorage.php - Boundary validation
app/Support/GeoBoundary.php - Resident-BHW chat
app/Support/ResidentBhwChat.php - Events
app/Models/Event.php
Health operations
- Resident records
app/Models/ResidentRequest.php - Consultations
app/Models/Consultation.php - Household monitoring
app/Models/HouseholdMonitoringCase.php - Monitoring visits
app/Models/HouseholdMonitoringVisit.php - Child health tracking
app/Support/BnsChildHealth.php - Child monitoring
app/Support/BnsChildMonitoring.php - Child nutrition
app/Support/BnsChildNutrition.php
Administration and reports
- BHW dashboards
app/Support/BhwDashboardBuilder.php - BHW reports
app/Support/BhwReportBuilder.php - BNS reports
app/Support/BnsReportBuilder.php - Records overview
app/Support/AllRecordsBuilder.php - Barangay boundaries
app/Models/Barangay.php - Purok assignments
app/Models/Purok.php
Other components
- Residents
- Health and LGU staff
Connections 22
- Residents → Web routes: submits requests
- Health and LGU staff → Web routes: uses services
- Web routes → BHW dashboards: builds dashboard
routes/web.php - Web routes → Records overview: builds records
routes/web.php - Web routes → BHW reports: builds reports
routes/web.php - Web routes → BNS reports: builds reports
routes/web.php - Web routes → Child health tracking: dispatches health work
routes/web.php - Web routes → Child monitoring: dispatches monitoring
routes/web.php - Web routes → Child nutrition: dispatches nutrition
routes/web.php - Web routes → Boundary validation: checks boundaries
routes/web.php - Web routes → Resident applications: reads resident records
routes/web.php - Web routes → Barangay boundaries: reads boundaries
routes/web.php - Web routes → Purok assignments: reads assignments
routes/web.php - Token API → Token service: issues and revokes
app/Http/Controllers/Api/AuthTokenController.php - Token API → User accounts: authenticates account
app/Http/Controllers/Api/AuthTokenController.php - Token API → Resident applications: sanitizes credentials
app/Http/Controllers/Api/AuthTokenController.php - Token service → User accounts: creates access tokens
app/Support/AuthTokenService.php - Resident applications → Private uploads: deletes ID uploads
app/Models/ResidentRequest.php - Household monitoring → Monitoring visits: has visits
app/Models/HouseholdMonitoringCase.php - Resident-BHW chat → Private uploads: stores attachments
app/Support/ResidentBhwChat.php - Barangay boundaries → User accounts: references captain
app/Models/Barangay.php - Purok assignments → Barangay boundaries: belongs to
app/Models/Purok.php