How warkeys/guardian-app works
Guardian is a Laravel platform for managing emergency profiles and sharing selected information through a public QR-linked page. Owners and administrators create profiles and control public fields; visitors scan the QR to view permitted details and may send a location-bearing WhatsApp alert. Separate capabilities cover account activation and retention, user/role administration, personal preferences, and scan/dashboard reporting. Edges rely on the README, route declarations, and sampled source references; unsampled implementation details are not inferred.
Main entry points: web.php Web routes · EmergencyProfilePublicController.php Public profile and QR · EmergencyProfileController.php Profile management · UserController.php User administration
Components 22
Emergency profiles
- Profile management
app/Http/Controllers/EmergencyProfileController.php - Emergency profile
app/Models/EmergencyProfile.php - Device code generator
app/Services/EmergencyProfileDeviceCodeGenerator.php
Public access and alerts
- Public profile and QR
app/Http/Controllers/EmergencyProfilePublicController.php - Scan history
app/Models/EmergencyProfileScan.php - Alert records
app/Models/EmergencyProfileAlert.php - WhatsApp sender
app/Http/Services/WhatsAppService.php
Accounts and administration
- User administration
app/Http/Controllers/UserController.php - User accounts
app/Models/User.php - Account activation
app/Http/Controllers/AccountActivationController.php - Settings and preferences
app/Http/Controllers/SettingController.php
Dashboard and reporting
- Dashboard reporting
app/Http/Controllers/DashboardController.php - Local GeoIP lookup
app/Services/GeoIpCountryResolver.php
Domain and integration services
- Web routes
routes/web.php - Application database
config/database.php - Permission configuration
app/Http/Traits/ConfigurationTrait.php - Role customization
app/Helpers/Customize.php - Random generator
app/Helpers/GenerarRandom.php - Role permissions
app/Helpers/RolePermission.php
Other components
- Profile owner
- QR visitor
- WhatsApp Business
Connections 29
- Profile owner → Web routes: opens account
README.md - Web routes → Profile management: routes profiles
routes/web.php - Profile management → Emergency profile: manages records
app/Http/Controllers/EmergencyProfileController.php - Profile management → Device code generator: generates codes
app/Http/Controllers/EmergencyProfileController.php - Profile management → Application database: persists profiles
- Profile owner → Web routes: manages users
README.md - Web routes → User administration: routes accounts
routes/web.php - User administration → User accounts: manages accounts
app/Http/Controllers/UserController.php - User administration → Permission configuration: updates permissions
app/Http/Controllers/UserController.php - Permission configuration → Role customization: checks role
app/Http/Traits/ConfigurationTrait.php - Permission configuration → Role permissions: loads permissions
app/Http/Traits/ConfigurationTrait.php - Web routes → Account activation: routes activation
routes/web.php - Account activation → User accounts: activates accounts
app/Http/Controllers/AccountActivationController.php - Profile owner → Web routes: sets preferences
README.md - Web routes → Settings and preferences: routes settings
routes/web.php - QR visitor → Web routes: opens QR page
README.md - Web routes → Public profile and QR: routes public pages
routes/web.php - Public profile and QR → Emergency profile: reads profile
app/Http/Controllers/EmergencyProfilePublicController.php - Public profile and QR → Scan history: records scans
app/Http/Controllers/EmergencyProfilePublicController.php - Public profile and QR → Alert records: records alerts
app/Http/Controllers/EmergencyProfilePublicController.php - Public profile and QR → WhatsApp sender: sends alert
app/Http/Controllers/EmergencyProfilePublicController.php - WhatsApp sender → WhatsApp Business: sends template
app/Http/Services/WhatsAppService.php - Web routes → Dashboard reporting: routes dashboard
routes/web.php - Dashboard reporting → Emergency profile: summarizes profiles
app/Http/Controllers/DashboardController.php - Dashboard reporting → Scan history: summarizes scans
app/Http/Controllers/DashboardController.php - Public profile and QR → Local GeoIP lookup: resolves country
app/Http/Controllers/EmergencyProfilePublicController.php - Dashboard reporting → Local GeoIP lookup: shows scan country
- Emergency profile → User accounts: uses owner defaults
app/Models/EmergencyProfile.php - User administration → Random generator: imports users
app/Http/Controllers/UserController.php