# atarriola/irimsv-ticketing architecture

> Architecture diagram of the GitHub repository atarriola/irimsv-ticketing, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/atarriola/irimsv-ticketing
- Repository: https://github.com/atarriola/irimsv-ticketing

## Overview

iRIMS-V Ticketing System is a Laravel/Inertia help desk for LRMIS users. Members and administrators sign in, raise and manage tickets through status, conversation, and resolution stages; the app also provides announcements and a community forum. Controllers serve the Vue/Inertia interface, backed by models and the LRMIS PostgreSQL database. The README documents SSO, optional email and live updates, plus ticket administration capabilities. Several feature links below rely on README statements because their implementation was not sampled.

Main entry points: [`app/Http/Controllers/TicketController.php`](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/TicketController.php) (Ticket lifecycle), [`app/Http/Controllers/DashboardController.php`](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/DashboardController.php) (Dashboard and metrics), [`app/Models/Ticket.php`](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/Ticket.php) (Ticket state), [`app/Http/Controllers/ForumThreadController.php`](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/ForumThreadController.php) (Community forum)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity and access"]
  node_sso["Single sign-on"]
  node_user_model["Accounts and roles<br/>[User.php]"]
  node_auth["Session login"]
end

subgraph group_support["Ticket support"]
  node_ticket_flow["Ticket lifecycle"]
  node_ticket_model["Ticket state<br/>[Ticket.php]"]
  node_ticket_comments["Ticket conversation<br/>[TicketComment.php]"]
  node_ticket_policy["Ticket permissions<br/>[TicketPolicy.php]"]
  node_ticket_notifications["Ticket notifications"]
  node_ticket_admin["Ticket operations"]
  node_category["Ticket categories<br/>[Category.php]"]
end

subgraph group_community["Community and news"]
  node_forum["Community forum"]
  node_forum_model["Forum threads<br/>[ForumThread.php]"]
  node_forum_content["Replies and topics<br/>[ForumReply.php]"]
  node_forum_resource["Forum presentation"]
  node_news["News and releases"]
  node_news_model["News posts<br/>[NewsPost.php]"]
end

subgraph group_experience["Web experience"]
  node_dashboard["Dashboard and metrics"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_inertia["Inertia interface"]
  node_vue_pages["Vue pages<br/>[Index.vue]"]
  node_db[("Application records<br/>[database.php]")]
end

node_lrmis_user(("LRMIS user"))
node_irims(("iRIMS-V SSO"))
node_lrmis_db[("LRMIS PostgreSQL")]
node_email["Email delivery"]
node_reverb["WebSocket updates"]

node_lrmis_user -->|"posts token"| node_sso
node_sso -->|"finds account"| node_user_model
node_lrmis_db -.->|"provides users"| node_user_model
node_lrmis_user -.->|"signs in"| node_auth
node_auth -.->|"authenticates"| node_user_model
node_lrmis_user -.->|"requests pages"| node_web_routes
node_web_routes -->|"routes tickets"| node_ticket_flow
node_ticket_flow -->|"reads and updates"| node_ticket_model
node_ticket_flow -->|"checks access"| node_ticket_policy
node_ticket_flow -->|"loads categories"| node_category
node_ticket_model -->|"owns conversation"| node_ticket_comments
node_ticket_flow -->|"notifies admins"| node_ticket_notifications
node_ticket_flow -.->|"supports operations"| node_ticket_admin
node_ticket_flow -.->|"renders ticket views"| node_vue_pages
node_web_routes -->|"routes dashboard"| node_dashboard
node_dashboard -->|"queries metrics"| node_ticket_model
node_dashboard -->|"loads latest news"| node_news_model
node_dashboard -->|"loads recent threads"| node_forum_model
node_dashboard -->|"serializes threads"| node_forum_resource
node_forum -->|"creates and reads"| node_forum_model
node_forum -.->|"serves replies"| node_forum_content
node_forum -->|"serializes threads"| node_forum_resource
node_forum -.->|"links forum features"| node_news
node_news -.->|"manages posts"| node_news_model
node_ticket_model -.->|"persists tickets"| node_db
node_forum_model -.->|"persists threads"| node_db
node_news_model -.->|"persists announcements"| node_db
node_ticket_notifications -.->|"optionally emails"| node_email
node_ticket_model -.->|"announces changes"| node_reverb
node_inertia -.->|"serves interface"| node_vue_pages

click node_sso "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/Auth/SingleSignOnController.php"
click node_user_model "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/User.php"
click node_auth "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_ticket_flow "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/TicketController.php"
click node_ticket_model "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/Ticket.php"
click node_ticket_comments "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/TicketComment.php"
click node_ticket_policy "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Policies/TicketPolicy.php"
click node_ticket_notifications "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Notifications/TicketStatusChanged.php"
click node_ticket_admin "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/TicketController.php"
click node_category "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/Category.php"
click node_dashboard "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/DashboardController.php"
click node_web_routes "https://github.com/atarriola/irimsv-ticketing/blob/main/routes/web.php"
click node_inertia "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Middleware/HandleInertiaRequests.php"
click node_vue_pages "https://github.com/atarriola/irimsv-ticketing/blob/main/resources/js/Pages/Tickets/Index.vue"
click node_forum "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/ForumThreadController.php"
click node_forum_model "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/ForumThread.php"
click node_forum_content "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/ForumReply.php"
click node_forum_resource "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Resources/ForumThreadResource.php"
click node_news "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/NewsPostController.php"
click node_news_model "https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/NewsPost.php"
click node_db "https://github.com/atarriola/irimsv-ticketing/blob/main/config/database.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_sso,node_user_model,node_auth,node_lrmis_user toneBlue
class node_ticket_flow,node_ticket_model,node_ticket_comments,node_ticket_policy,node_ticket_notifications,node_ticket_admin,node_category,node_lrmis_db toneAmber
class node_forum,node_forum_model,node_forum_content,node_forum_resource,node_news,node_news_model toneMint
class node_dashboard,node_web_routes,node_inertia,node_vue_pages,node_db toneRose
class node_irims,node_email,node_reverb toneIndigo
```

## Components

### Identity and access

- [Single sign-on](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/Auth/SingleSignOnController.php): `app/Http/Controllers/Auth/SingleSignOnController.php`
- [Accounts and roles](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/User.php): `app/Models/User.php`
- [Session login](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`

### Ticket support

- [Ticket lifecycle](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/TicketController.php): `app/Http/Controllers/TicketController.php`
- [Ticket state](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/Ticket.php): `app/Models/Ticket.php`
- [Ticket conversation](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/TicketComment.php): `app/Models/TicketComment.php`
- [Ticket permissions](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Policies/TicketPolicy.php): `app/Policies/TicketPolicy.php`
- [Ticket notifications](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Notifications/TicketStatusChanged.php): `app/Notifications/TicketStatusChanged.php`
- [Ticket operations](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/TicketController.php): `app/Http/Controllers/TicketController.php`
- [Ticket categories](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/Category.php): `app/Models/Category.php`

### Community and news

- [Community forum](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/ForumThreadController.php): `app/Http/Controllers/ForumThreadController.php`
- [Forum threads](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/ForumThread.php): `app/Models/ForumThread.php`
- [Replies and topics](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/ForumReply.php): `app/Models/ForumReply.php`
- [Forum presentation](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Resources/ForumThreadResource.php): `app/Http/Resources/ForumThreadResource.php`
- [News and releases](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/NewsPostController.php): `app/Http/Controllers/NewsPostController.php`
- [News posts](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Models/NewsPost.php): `app/Models/NewsPost.php`

### Web experience

- [Dashboard and metrics](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`
- [Web routes](https://github.com/atarriola/irimsv-ticketing/blob/main/routes/web.php): `routes/web.php`
- [Inertia interface](https://github.com/atarriola/irimsv-ticketing/blob/main/app/Http/Middleware/HandleInertiaRequests.php): `app/Http/Middleware/HandleInertiaRequests.php`
- [Vue pages](https://github.com/atarriola/irimsv-ticketing/blob/main/resources/js/Pages/Tickets/Index.vue): `resources/js/Pages/Tickets/Index.vue`
- [Application records](https://github.com/atarriola/irimsv-ticketing/blob/main/config/database.php): `config/database.php`

### Other components

- **LRMIS user**
- **iRIMS-V SSO**
- **LRMIS PostgreSQL**
- **Email delivery**
- **WebSocket updates**

## Connections

- LRMIS user → Single sign-on: posts token (evidence: `app/Http/Controllers/Auth/SingleSignOnController.php`)
- Single sign-on → Accounts and roles: finds account (evidence: `app/Http/Controllers/Auth/SingleSignOnController.php`)
- LRMIS PostgreSQL → Accounts and roles: provides users (evidence: `README.md`)
- LRMIS user → Session login: signs in (evidence: `README.md`)
- Session login → Accounts and roles: authenticates (evidence: `README.md`)
- LRMIS user → Web routes: requests pages (evidence: `README.md`)
- Web routes → Ticket lifecycle: routes tickets (evidence: `routes/web.php`)
- Ticket lifecycle → Ticket state: reads and updates (evidence: `app/Http/Controllers/TicketController.php`)
- Ticket lifecycle → Ticket permissions: checks access (evidence: `app/Http/Controllers/TicketController.php`)
- Ticket lifecycle → Ticket categories: loads categories (evidence: `app/Http/Controllers/TicketController.php`)
- Ticket state → Ticket conversation: owns conversation (evidence: `app/Models/Ticket.php`)
- Ticket lifecycle → Ticket notifications: notifies admins (evidence: `app/Http/Controllers/TicketController.php`)
- Ticket lifecycle → Ticket operations: supports operations (evidence: `README.md`)
- Ticket lifecycle → Vue pages: renders ticket views (evidence: `README.md`)
- Web routes → Dashboard and metrics: routes dashboard (evidence: `routes/web.php`)
- Dashboard and metrics → Ticket state: queries metrics (evidence: `app/Http/Controllers/DashboardController.php`)
- Dashboard and metrics → News posts: loads latest news (evidence: `app/Http/Controllers/DashboardController.php`)
- Dashboard and metrics → Forum threads: loads recent threads (evidence: `app/Http/Controllers/DashboardController.php`)
- Dashboard and metrics → Forum presentation: serializes threads (evidence: `app/Http/Controllers/DashboardController.php`)
- Community forum → Forum threads: creates and reads (evidence: `app/Http/Controllers/ForumThreadController.php`)
- Community forum → Replies and topics: serves replies (evidence: `README.md`)
- Community forum → Forum presentation: serializes threads (evidence: `app/Http/Controllers/ForumThreadController.php`)
- Community forum → News and releases: links forum features
- News and releases → News posts: manages posts (evidence: `README.md`)
- Ticket state → Application records: persists tickets (evidence: `README.md`)
- Forum threads → Application records: persists threads (evidence: `README.md`)
- News posts → Application records: persists announcements (evidence: `README.md`)
- Ticket notifications → Email delivery: optionally emails (evidence: `README.md`)
- Ticket state → WebSocket updates: announces changes (evidence: `README.md`)
- Inertia interface → Vue pages: serves interface (evidence: `README.md`)
