# marykay-techicoder/evenet architecture

> Architecture diagram of the GitHub repository marykay-techicoder/evenet, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/marykay-techicoder/evenet
- Repository: https://github.com/marykay-techicoder/evenet

## Overview

Eventha is an event-management web application built on Laravel, with an Inertia/React interface. Users can register or log in, browse and manage events, and submit event registrations; event creators can define event details and capacity, while registration handling checks for duplicates and capacity and creates a ticket code. The graph includes the sampled controller/model relationships and major UI areas visible in the tree. Evidence is limited: some frontend pages and subsystems are represented by their exact directories because their source was not excerpted.

Main entry points: [`app/Http/Controllers/EventController.php`](https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/EventController.php) (Event management), [`resources/js/app.jsx`](https://github.com/marykay-techicoder/evenet/blob/main/resources/js/app.jsx) (Inertia React app), [`app/Http/Controllers/RegistrationController.php`](https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/RegistrationController.php) (Registration handling), [`routes/web.php`](https://github.com/marykay-techicoder/evenet/blob/main/routes/web.php) (Web routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web entry"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_auth_routes["Auth routes<br/>[auth.php]"]
  node_app_boot["Laravel application<br/>[app.php]"]
end

subgraph group_identity["Accounts"]
  node_auth_controller["Session controller"]
  node_register_controller["Account registration"]
  node_verification["Email verification"]
  node_user_model[("User account<br/>[User.php]")]
  node_profile_controller["Profile management"]
end

subgraph group_events["Event domain"]
  node_event_controller["Event management"]
  node_event_model[("Event records<br/>[Event.php]")]
  node_category_model[("Event categories<br/>[Category.php]")]
  node_registration_controller["Registration handling"]
  node_registration_model[("Registration records<br/>[Registration.php]")]
  node_event_request["Event validation"]
  node_registration_request["Registration validation"]
  node_activity_log["Activity logging<br/>[activity.php]"]
end

subgraph group_interface["User interface"]
  node_react_app["Inertia React app<br/>[app.jsx]"]
  node_event_pages["Event pages"]
  node_registration_page["Registration form"]
  node_account_pages["Account pages"]
  node_profile_pages["Profile pages"]
  node_analytics_pages["Analytics pages"]
  node_api_module["API module<br/>[api.js]"]
end

node_visitor(("Visitor or user"))

node_visitor -->|"requests routes"| node_web_routes
node_app_boot -->|"loads routes"| node_web_routes
node_web_routes -->|"routes requests"| node_event_controller
node_web_routes -->|"routes requests"| node_registration_controller
node_web_routes -->|"routes requests"| node_profile_controller
node_auth_routes -->|"routes login"| node_auth_controller
node_auth_routes -->|"routes signup"| node_register_controller
node_auth_routes -->|"routes verification"| node_verification
node_auth_controller -.->|"authenticates user"| node_user_model
node_register_controller -->|"creates account"| node_user_model
node_profile_controller -->|"updates account"| node_user_model
node_event_controller -->|"reads and writes"| node_event_model
node_event_controller -->|"accepts validated input"| node_event_request
node_event_controller -.->|"records activity"| node_activity_log
node_event_model -->|"belongs to"| node_category_model
node_event_model -->|"belongs to"| node_user_model
node_event_model -->|"has registrations"| node_registration_model
node_registration_controller -->|"loads event"| node_event_model
node_registration_controller -->|"checks and creates"| node_registration_model
node_registration_controller -->|"accepts validated input"| node_registration_request
node_react_app -->|"resolves pages"| node_event_pages
node_react_app -->|"resolves pages"| node_registration_page
node_react_app -->|"resolves pages"| node_account_pages
node_react_app -->|"resolves pages"| node_profile_pages
node_react_app -->|"resolves pages"| node_analytics_pages
node_event_controller -.->|"renders event views"| node_event_pages
node_registration_controller -.->|"serves registration flow"| node_registration_page
node_api_module -.->|"may call endpoints"| node_event_controller

click node_web_routes "https://github.com/marykay-techicoder/evenet/blob/main/routes/web.php"
click node_auth_routes "https://github.com/marykay-techicoder/evenet/blob/main/routes/auth.php"
click node_app_boot "https://github.com/marykay-techicoder/evenet/blob/main/bootstrap/app.php"
click node_auth_controller "https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_register_controller "https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php"
click node_verification "https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/Auth/VerifyEmailController.php"
click node_user_model "https://github.com/marykay-techicoder/evenet/blob/main/app/Models/User.php"
click node_profile_controller "https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/ProfileController.php"
click node_event_controller "https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/EventController.php"
click node_event_model "https://github.com/marykay-techicoder/evenet/blob/main/app/Models/Event.php"
click node_category_model "https://github.com/marykay-techicoder/evenet/blob/main/app/Models/Category.php"
click node_registration_controller "https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/RegistrationController.php"
click node_registration_model "https://github.com/marykay-techicoder/evenet/blob/main/app/Models/Registration.php"
click node_event_request "https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Requests/StoreEventRequest.php"
click node_registration_request "https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Requests/StoreRegistrationRequest.php"
click node_activity_log "https://github.com/marykay-techicoder/evenet/blob/main/app/Helpers/activity.php"
click node_react_app "https://github.com/marykay-techicoder/evenet/blob/main/resources/js/app.jsx"
click node_event_pages "https://github.com/marykay-techicoder/evenet/tree/main/resources/js/Pages"
click node_registration_page "https://github.com/marykay-techicoder/evenet/blob/main/resources/js/Pages/EventRegistration.jsx"
click node_account_pages "https://github.com/marykay-techicoder/evenet/tree/main/resources/js/Pages/Auth"
click node_profile_pages "https://github.com/marykay-techicoder/evenet/tree/main/resources/js/Pages/Profile"
click node_analytics_pages "https://github.com/marykay-techicoder/evenet/tree/main/resources/js/Pages/Analytics"
click node_api_module "https://github.com/marykay-techicoder/evenet/blob/main/api.js"

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_web_routes,node_auth_routes,node_app_boot,node_visitor toneBlue
class node_auth_controller,node_register_controller,node_verification,node_user_model,node_profile_controller toneAmber
class node_event_controller,node_event_model,node_category_model,node_registration_controller,node_registration_model,node_event_request,node_registration_request,node_activity_log toneMint
class node_react_app,node_event_pages,node_registration_page,node_account_pages,node_profile_pages,node_analytics_pages,node_api_module toneRose
```

## Components

### Web entry

- [Web routes](https://github.com/marykay-techicoder/evenet/blob/main/routes/web.php): `routes/web.php`
- [Auth routes](https://github.com/marykay-techicoder/evenet/blob/main/routes/auth.php): `routes/auth.php`
- [Laravel application](https://github.com/marykay-techicoder/evenet/blob/main/bootstrap/app.php): `bootstrap/app.php`

### Accounts

- [Session controller](https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- [Account registration](https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php): `app/Http/Controllers/Auth/RegisteredUserController.php`
- [Email verification](https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/Auth/VerifyEmailController.php): `app/Http/Controllers/Auth/VerifyEmailController.php`
- [User account](https://github.com/marykay-techicoder/evenet/blob/main/app/Models/User.php): `app/Models/User.php`
- [Profile management](https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/ProfileController.php): `app/Http/Controllers/ProfileController.php`

### Event domain

- [Event management](https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/EventController.php): `app/Http/Controllers/EventController.php`
- [Event records](https://github.com/marykay-techicoder/evenet/blob/main/app/Models/Event.php): `app/Models/Event.php`
- [Event categories](https://github.com/marykay-techicoder/evenet/blob/main/app/Models/Category.php): `app/Models/Category.php`
- [Registration handling](https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Controllers/RegistrationController.php): `app/Http/Controllers/RegistrationController.php`
- [Registration records](https://github.com/marykay-techicoder/evenet/blob/main/app/Models/Registration.php): `app/Models/Registration.php`
- [Event validation](https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Requests/StoreEventRequest.php): `app/Http/Requests/StoreEventRequest.php`
- [Registration validation](https://github.com/marykay-techicoder/evenet/blob/main/app/Http/Requests/StoreRegistrationRequest.php): `app/Http/Requests/StoreRegistrationRequest.php`
- [Activity logging](https://github.com/marykay-techicoder/evenet/blob/main/app/Helpers/activity.php): `app/Helpers/activity.php`

### User interface

- [Inertia React app](https://github.com/marykay-techicoder/evenet/blob/main/resources/js/app.jsx): `resources/js/app.jsx`
- [Event pages](https://github.com/marykay-techicoder/evenet/tree/main/resources/js/Pages): `resources/js/Pages`
- [Registration form](https://github.com/marykay-techicoder/evenet/blob/main/resources/js/Pages/EventRegistration.jsx): `resources/js/Pages/EventRegistration.jsx`
- [Account pages](https://github.com/marykay-techicoder/evenet/tree/main/resources/js/Pages/Auth): `resources/js/Pages/Auth`
- [Profile pages](https://github.com/marykay-techicoder/evenet/tree/main/resources/js/Pages/Profile): `resources/js/Pages/Profile`
- [Analytics pages](https://github.com/marykay-techicoder/evenet/tree/main/resources/js/Pages/Analytics): `resources/js/Pages/Analytics`
- [API module](https://github.com/marykay-techicoder/evenet/blob/main/api.js): `api.js`

### Other components

- **Visitor or user**

## Connections

- Visitor or user → Web routes: requests routes (evidence: `routes/web.php`)
- Laravel application → Web routes: loads routes (evidence: `bootstrap/app.php`)
- Web routes → Event management: routes requests (evidence: `routes/web.php`)
- Web routes → Registration handling: routes requests (evidence: `routes/web.php`)
- Web routes → Profile management: routes requests (evidence: `routes/web.php`)
- Auth routes → Session controller: routes login (evidence: `routes/auth.php`)
- Auth routes → Account registration: routes signup (evidence: `routes/auth.php`)
- Auth routes → Email verification: routes verification (evidence: `routes/auth.php`)
- Session controller → User account: authenticates user
- Account registration → User account: creates account (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Profile management → User account: updates account (evidence: `app/Http/Controllers/ProfileController.php`)
- Event management → Event records: reads and writes (evidence: `app/Http/Controllers/EventController.php`)
- Event management → Event validation: accepts validated input (evidence: `app/Http/Controllers/EventController.php`)
- Event management → Activity logging: records activity
- Event records → Event categories: belongs to (evidence: `app/Models/Event.php`)
- Event records → User account: belongs to (evidence: `app/Models/Event.php`)
- Event records → Registration records: has registrations (evidence: `app/Models/Event.php`)
- Registration handling → Event records: loads event (evidence: `app/Http/Controllers/RegistrationController.php`)
- Registration handling → Registration records: checks and creates (evidence: `app/Http/Controllers/RegistrationController.php`)
- Registration handling → Registration validation: accepts validated input (evidence: `app/Http/Controllers/RegistrationController.php`)
- Inertia React app → Event pages: resolves pages (evidence: `resources/js/app.jsx`)
- Inertia React app → Registration form: resolves pages (evidence: `resources/js/app.jsx`)
- Inertia React app → Account pages: resolves pages (evidence: `resources/js/app.jsx`)
- Inertia React app → Profile pages: resolves pages (evidence: `resources/js/app.jsx`)
- Inertia React app → Analytics pages: resolves pages (evidence: `resources/js/app.jsx`)
- Event management → Event pages: renders event views
- Registration handling → Registration form: serves registration flow
- API module → Event management: may call endpoints
