# lawrence-diokno1/autoaid-v1 architecture

> Architecture diagram of the GitHub repository lawrence-diokno1/autoaid-v1, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lawrence-diokno1/autoaid-v1
- Repository: https://github.com/lawrence-diokno1/autoaid-v1

## Overview

AutoAid is a Laravel automotive-service and shop-management application. The visible customer workflow covers discovering a shop and services, booking service for a vehicle, and receiving repair assessments; the application also includes product sales, inventory, messaging, and shop administration. The graph groups these domain areas and highlights the models that support them. Several route and controller implementations were not sampled, so their connections are omitted rather than inferred; dashed edges mark the unverified web-entry relationship.

Main entry points: [`app/Http/Controllers/GuestController.php`](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/GuestController.php) (Customer journeys), [`app/Http/Controllers/BookingController.php`](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/BookingController.php) (Service booking), [`app/Http/Controllers/AssessmentController.php`](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/AssessmentController.php) (Repair assessment), [`routes/web.php`](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/routes/web.php) (Web routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web and accounts"]
  node_routes["Web routes<br/>[web.php]"]
  node_guest["Customer journeys"]
  node_auth["Authentication"]
end

subgraph group_service["Repair services"]
  node_service_discovery["Shop discovery"]
  node_booking_controller["Service booking"]
  node_booking[("Bookings<br/>[Booking.php]")]
  node_service_model[("Service catalog<br/>[Service.php]")]
  node_assessment["Repair assessment"]
  node_assessment_model[("Assessment records")]
  node_assessment_mail["Assessment email"]
end

subgraph group_commerce["Shop commerce"]
  node_product[("Products<br/>[Product.php]")]
  node_orders["Orders and sales"]
  node_inventory["Inventory management"]
end

subgraph group_shared["Shared domain"]
  node_user[("User accounts<br/>[User.php]")]
  node_branch[("Branches<br/>[Branch.php]")]
  node_vehicle[("Customer vehicles<br/>[Vehicle.php]")]
  node_messages[("Messaging<br/>[Message.php]")]
  node_message_event["Message event<br/>[MessageSent.php]"]
end

node_customer(("Customer"))

node_customer -.->|"sends requests"| node_routes
node_routes -.->|"routes to"| node_guest
node_routes -.->|"routes to"| node_auth
node_auth -->|"registers users"| node_user
node_guest -->|"reads accounts"| node_user
node_guest -->|"finds shops"| node_branch
node_guest -->|"lists services"| node_service_model
node_booking_controller -->|"creates bookings"| node_booking
node_booking_controller -->|"checks services"| node_service_model
node_booking_controller -->|"checks vehicles"| node_vehicle
node_assessment -->|"updates assessments"| node_assessment_model
node_assessment -->|"selects mechanics"| node_user
node_assessment -->|"loads products"| node_product
node_assessment_mail -->|"reads assessment"| node_assessment_model
node_assessment_mail -->|"reads vehicle"| node_vehicle
node_orders -.->|"manages sales"| node_product
node_inventory -.->|"manages stock"| node_product
node_message_event -->|"references message"| node_messages

click node_routes "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/routes/web.php"
click node_guest "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/GuestController.php"
click node_auth "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_user "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/User.php"
click node_service_discovery "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/GuestController.php"
click node_branch "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/Branch.php"
click node_booking_controller "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/BookingController.php"
click node_booking "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/Booking.php"
click node_service_model "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/Service.php"
click node_vehicle "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/Vehicle.php"
click node_assessment "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/AssessmentController.php"
click node_assessment_model "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/AssessmentBooking.php"
click node_assessment_mail "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Mail/AssessmentCompleteMail.php"
click node_product "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/Product.php"
click node_orders "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/OrderController.php"
click node_inventory "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/InventoryController.php"
click node_messages "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/Message.php"
click node_message_event "https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Events/MessageSent.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_routes,node_guest,node_auth toneBlue
class node_service_discovery,node_booking_controller,node_booking,node_service_model,node_assessment,node_assessment_model,node_assessment_mail toneAmber
class node_product,node_orders,node_inventory toneMint
class node_user,node_branch,node_vehicle,node_messages,node_message_event toneRose
class node_customer toneIndigo
```

## Components

### Web and accounts

- [Web routes](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/routes/web.php): `routes/web.php`
- [Customer journeys](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/GuestController.php): `app/Http/Controllers/GuestController.php`
- [Authentication](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`

### Repair services

- [Shop discovery](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/GuestController.php): `app/Http/Controllers/GuestController.php`
- [Service booking](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/BookingController.php): `app/Http/Controllers/BookingController.php`
- [Bookings](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/Booking.php): `app/Models/Booking.php`
- [Service catalog](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/Service.php): `app/Models/Service.php`
- [Repair assessment](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/AssessmentController.php): `app/Http/Controllers/AssessmentController.php`
- [Assessment records](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/AssessmentBooking.php): `app/Models/AssessmentBooking.php`
- [Assessment email](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Mail/AssessmentCompleteMail.php): `app/Mail/AssessmentCompleteMail.php`

### Shop commerce

- [Products](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/Product.php): `app/Models/Product.php`
- [Orders and sales](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/OrderController.php): `app/Http/Controllers/OrderController.php`
- [Inventory management](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Http/Controllers/InventoryController.php): `app/Http/Controllers/InventoryController.php`

### Shared domain

- [User accounts](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/User.php): `app/Models/User.php`
- [Branches](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/Branch.php): `app/Models/Branch.php`
- [Customer vehicles](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/Vehicle.php): `app/Models/Vehicle.php`
- [Messaging](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Models/Message.php): `app/Models/Message.php`
- [Message event](https://github.com/lawrence-diokno1/autoaid-v1/blob/main/app/Events/MessageSent.php): `app/Events/MessageSent.php`

### Other components

- **Customer**

## Connections

- Customer → Web routes: sends requests
- Web routes → Customer journeys: routes to
- Web routes → Authentication: routes to
- Authentication → User accounts: registers users
- Customer journeys → User accounts: reads accounts (evidence: `app/Http/Controllers/GuestController.php`)
- Customer journeys → Branches: finds shops (evidence: `app/Http/Controllers/GuestController.php`)
- Customer journeys → Service catalog: lists services (evidence: `app/Http/Controllers/GuestController.php`)
- Service booking → Bookings: creates bookings (evidence: `app/Http/Controllers/BookingController.php`)
- Service booking → Service catalog: checks services (evidence: `app/Http/Controllers/BookingController.php`)
- Service booking → Customer vehicles: checks vehicles (evidence: `app/Http/Controllers/BookingController.php`)
- Repair assessment → Assessment records: updates assessments (evidence: `app/Http/Controllers/AssessmentController.php`)
- Repair assessment → User accounts: selects mechanics (evidence: `app/Http/Controllers/AssessmentController.php`)
- Repair assessment → Products: loads products (evidence: `app/Http/Controllers/AssessmentController.php`)
- Assessment email → Assessment records: reads assessment (evidence: `app/Mail/AssessmentCompleteMail.php`)
- Assessment email → Customer vehicles: reads vehicle (evidence: `app/Mail/AssessmentCompleteMail.php`)
- Orders and sales → Products: manages sales
- Inventory management → Products: manages stock
- Message event → Messaging: references message (evidence: `app/Events/MessageSent.php`)
