How error1904/deskflow works
DeskFlow is a Laravel IT service desk. Employees, agents, and managers use authenticated ticket workflows: browse and filter tickets, view ticket details, post comments with private attachments, and download authorized files. Separate capabilities include registration and email verification, SLA escalation, and a protected metrics API. The graph follows sampled controller/model behavior and documented features; routes and several feature implementations were not sampled, so uncertain route wiring is omitted.
Main entry points: TicketController.php Ticket workflows · Ticket.php Ticket lifecycle · auth.php Auth routes · AuthenticatedSessionController.php Session auth
Components 19
Identity and access
- Auth routes
routes/auth.php - Session auth
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Registration
app/Http/Controllers/Auth/RegisteredUserController.php - Login validation
app/Http/Requests/Auth/LoginRequest.php - Roles and accounts
app/Models/User.php
Ticket workflows
- Ticket workflows
app/Http/Controllers/TicketController.php - Comment validation
app/Http/Requests/TicketCommentRequest.php - Ticket lifecycle
app/Models/Ticket.php - Ticket comments
app/Models/TicketComment.php - Attachments
app/Models/Attachment.php - Ticket screens
resources/views/tickets - Private file storage
Operations and metrics
- SLA escalation
app/Console/Commands/CheckSlaBreach.php - Metrics endpoint
app/Http/Controllers/Api/MetricsController.php
Laravel runtime
- HTTP entry
public/index.php - HTTP kernel
app/Http/Kernel.php - Route registration
app/Providers/RouteServiceProvider.php - Application database
config/database.php
Other components
- Employees and staff
Connections 20
- Employees and staff → HTTP entry: send requests
public/index.php - HTTP entry → HTTP kernel: handles requests
public/index.php - HTTP kernel → Route registration: uses routes
- Employees and staff → Auth routes: authenticate
routes/auth.php - Auth routes → Session auth: routes login
routes/auth.php - Auth routes → Registration: routes signup
routes/auth.php - Session auth → Login validation: authenticates with
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Registration → Roles and accounts: creates account
app/Http/Controllers/Auth/RegisteredUserController.php - Employees and staff → Ticket workflows: use ticket service
- Ticket workflows → Comment validation: validates comments
app/Http/Controllers/TicketController.php - Ticket workflows → Ticket lifecycle: queries tickets
app/Http/Controllers/TicketController.php - Ticket workflows → Attachments: creates attachments
app/Http/Controllers/TicketController.php - Ticket workflows → Ticket screens: renders screens
app/Http/Controllers/TicketController.php - Ticket lifecycle → Ticket comments: has comments
app/Models/Ticket.php - Ticket comments → Attachments: has attachments
app/Models/TicketComment.php - Ticket workflows → Private file storage: stores and downloads
app/Http/Controllers/TicketController.php - Employees and staff → Metrics endpoint: request metrics
README.md - Metrics endpoint → Ticket lifecycle: counts tickets
app/Http/Controllers/Api/MetricsController.php - SLA escalation → Ticket lifecycle: checks SLA
app/Console/Commands/CheckSlaBreach.php - Ticket workflows → Roles and accounts: filters by role