How fedha99/monitoring-laravel works
This is a Laravel/Livewire web-monitor setup with user authentication, role-aware access, and CRUD management for monitoring-device records. The visible workflow is a user reaching the web routes, managing devices through the controller and device views, and persisting device records through the model. The README documents SQLite setup and PostgreSQL as the intended production database, but sampled files do not show a monitoring poller, device-connection service, or monitoring results workflow; those are not represented as implemented components.
Main entry points: auth.php Auth routes · DeviceController.php Device CRUD · app.php App bootstrap · web.php Web routes
Components 18
Web runtime
- HTTP entry
public/index.php - App bootstrap
bootstrap/app.php - Web routes
routes/web.php - Volt mounting
app/Providers/VoltServiceProvider.php - Dashboard screens
resources/views/dashboard.blade.php
Identity and access
- Auth routes
routes/auth.php - Auth screens
resources/views/livewire/auth - Email verification
app/Http/Controllers/Auth/VerifyEmailController.php - Logout action
app/Livewire/Actions/Logout.php - User model
app/Models/User.php - Role middleware
app/Http/Middleware/EnsureUserHasRole.php - Admin gate
app/Providers/AppServiceProvider.php
Device management
- Device CRUD
app/Http/Controllers/DeviceController.php - Device screens
resources/views/devices - Device policy
app/Policies/DevicePolicy.php
Application data
- Device model
app/Models/Device.php - Configured database
Other components
- User
Connections 15
- User → HTTP entry: sends requests
- HTTP entry → App bootstrap: loads app
public/index.php - App bootstrap → Web routes: configures routes
bootstrap/app.php - Web routes → Auth routes: includes auth
routes/web.php - Auth routes → Email verification: routes verification
routes/auth.php - Auth routes → Logout action: routes logout
routes/auth.php - Auth routes → Auth screens: serves screens
- Web routes → Device CRUD: routes devices
routes/web.php - Device CRUD → Device model: queries and saves
app/Http/Controllers/DeviceController.php - Device CRUD → Device screens: renders screens
app/Http/Controllers/DeviceController.php - Device CRUD → Device policy: authorizes actions
- App bootstrap → Role middleware: aliases middleware
bootstrap/app.php - Admin gate → User model: checks admin role
app/Providers/AppServiceProvider.php - Volt mounting → Auth screens: mounts views
app/Providers/VoltServiceProvider.php - Device model → Configured database: persists records