How justingojar/bulan_senior_care works
Bulan SeniorCare is a senior-citizen and benefits administration portal: staff manage registrations and eligibility, process benefit requests and release batches, and use communications and reports to support that work. The React frontend calls a Laravel API; the README documents a same-origin production deployment and MySQL storage. The graph includes major documented capabilities, but several frontend pages and backend controllers were not sampled, so their internal call relationships are not inferred.
Main entry points: api.php API routes · SeniorCitizen.php Senior records model · SeniorCitizenController.php Senior records · BenefitRequestController.php Benefit requests
Components 26
Portal
- React portal
frontend/src - API client
frontend/src/lib/api.ts
API and access
- API routes
backend/routes/api.php - Authentication
backend/app/Http/Controllers/AuthController.php - Cookie authentication
backend/app/Http/Middleware/AuthenticateFromCookie.php - Role permissions
backend/app/Support/RolePermissions.php
Care operations
- Senior records
backend/app/Http/Controllers/SeniorCitizenController.php - Benefit requests
backend/app/Http/Controllers/BenefitRequestController.php - Release batches
backend/app/Http/Controllers/BenefitReleaseController.php - Benefit transactions
backend/app/Http/Controllers/BenefitTransactionController.php - Analytics
backend/app/Http/Controllers/AnalyticsController.php - Announcements
backend/app/Http/Controllers/AnnouncementController.php - Messages
backend/app/Http/Controllers/MessageController.php - Advisory delivery
backend/app/Support/AdvisoryDispatcher.php - Age-threshold alerts
backend/app/Support/AgeThresholdNotifier.php - Facebook import
backend/app/Console/Commands/SyncFacebookAnnouncements.php
Records and operations
- Audit logs
backend/app/Models/AuditLog.php - Senior records model
backend/app/Models/SeniorCitizen.php - Benefit catalog
backend/app/Models/Benefit.php - Transaction records
backend/app/Models/BenefitTransaction.php - User accounts
backend/app/Models/User.php - Barangays
backend/app/Models/Barangay.php - Railway MySQL
- Database and photo backup
backend/app/Support/DatabaseBackup.php
Other components
- Staff users
- Facebook Page
Connections 33
- Staff users → React portal: uses
README.md - React portal → API client: requests data
README.md - API client → API routes: calls API
README.md - API routes → Authentication: routes to
backend/routes/api.php - API routes → Senior records: routes to
backend/routes/api.php - API routes → Benefit requests: routes to
backend/routes/api.php - API routes → Release batches: routes to
backend/routes/api.php - API routes → Benefit transactions: routes to
backend/routes/api.php - API routes → Analytics: routes to
backend/routes/api.php - API routes → Announcements: routes to
backend/routes/api.php - API routes → Messages: routes to
backend/routes/api.php - Senior records → Senior records model: updates
backend/app/Http/Controllers/SeniorCitizenController.php - Senior records → Audit logs: records changes
backend/app/Http/Controllers/SeniorCitizenController.php - Senior records → Role permissions: checks access
backend/app/Http/Controllers/SeniorCitizenController.php - Benefit requests → Senior records model: checks eligibility
backend/app/Http/Controllers/BenefitRequestController.php - Benefit requests → Benefit catalog: checks eligibility
backend/app/Http/Controllers/BenefitRequestController.php - Benefit requests → Transaction records: creates transaction
backend/app/Http/Controllers/BenefitRequestController.php - Release batches → Transaction records: lists recipients
backend/app/Http/Controllers/BenefitReleaseController.php - Release batches → Role permissions: checks access
backend/app/Http/Controllers/BenefitReleaseController.php - Analytics → Senior records model: queries
backend/app/Http/Controllers/AnalyticsController.php - Analytics → Transaction records: queries
backend/app/Http/Controllers/AnalyticsController.php - Senior records model → Age-threshold alerts: notifies
backend/app/Models/SeniorCitizen.php - Advisory delivery → Senior records model: selects recipients
backend/app/Support/AdvisoryDispatcher.php - Advisory delivery → User accounts: selects recipients
backend/app/Support/AdvisoryDispatcher.php - Authentication → User accounts: authenticates
backend/app/Http/Controllers/AuthController.php - Authentication → Cookie authentication: sets cookie
backend/app/Http/Controllers/AuthController.php - API routes → Cookie authentication: installs middleware
- Railway MySQL → API routes: stores API data
README.md - Facebook import → Facebook Page: imports posts
README.md - Database and photo backup → Railway MySQL: backs up
- Database and photo backup → Senior records model: backs up photos
- Senior records model → Barangays: belongs to
backend/app/Models/SeniorCitizen.php - Senior records model → Benefit catalog: relates to
backend/app/Models/SeniorCitizen.php