# zed-mp3/motorcycle_repair_shop_laravel architecture

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

- Interactive diagram: https://gitdiagram.com/zed-mp3/motorcycle_repair_shop_laravel
- Repository: https://github.com/zed-mp3/motorcycle_repair_shop_laravel

## Overview

The repository contains a legacy motorcycle-repair service portal alongside a Laravel 12 skeleton. The principal documented customer flow is booking a repair, with separate customer tracking, administrator operations, and mechanic repair work. Legacy bootstrap and database configuration underpin those portal areas; login and registration also reference notification sending. The Laravel entry point is present, but its route contents do not establish an application workflow. Unsampled feature files are represented at their enclosing directory level; links are limited to relationships evidenced by excerpts or the source index.

Main entry points: [`legacy/bootstrap.php`](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/bootstrap.php) (Legacy bootstrap), [`legacy/config/database.php`](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/config/database.php) (DB connection), [`legacy/customer/book-service.php`](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/customer/book-service.php) (Book service), [`legacy/includes/auth.php`](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/includes/auth.php) (Session authorization)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Customer portal"]
  node_booking_page["Book service<br/>[book-service.php]"]
  node_booking_handler["Booking processing"]
  node_customer_status["Booking status<br/>[booking-status.php]"]
  node_customer_tracking["Repair tracking<br/>[track-status.php]"]
  node_customer_home["Customer home<br/>[home.php]"]
  node_legacy_login["Login and registration"]
end

subgraph group_operations["Repair operations"]
  node_admin["Admin operations"]
  node_mechanic["Mechanic workflow"]
end

subgraph group_legacy_core["Legacy core"]
  node_notifications["Email notifications"]
  node_mailer["PHPMailer<br/>[PHPMailer.php]"]
  node_smtp["SMTP transport<br/>[SMTP.php]"]
  node_legacy_bootstrap["Legacy bootstrap<br/>[bootstrap.php]"]
  node_legacy_auth["Session authorization<br/>[auth.php]"]
  node_legacy_db_config["DB connection<br/>[database.php]"]
  node_legacy_database[("Repair portal database<br/>[database.php]")]
end

subgraph group_laravel["Laravel skeleton"]
  node_public_entry["Laravel entry<br/>[index.php]"]
  node_laravel_bootstrap["Laravel application setup<br/>[app.php]"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_user_model["Laravel user model<br/>[User.php]"]
end

node_customer(("Customer"))
node_http_user(("Web user"))

node_customer -->|"opens"| node_booking_page
node_booking_page -->|"submits booking"| node_booking_handler
node_customer -.->|"views bookings"| node_customer_status
node_customer -.->|"tracks repair"| node_customer_tracking
node_customer -.->|"opens home"| node_customer_home
node_legacy_login -->|"sends notification"| node_notifications
node_booking_page -->|"loads"| node_legacy_bootstrap
node_booking_page -->|"loads"| node_legacy_db_config
node_booking_page -->|"loads"| node_legacy_auth
node_legacy_bootstrap -->|"loads"| node_legacy_db_config
node_legacy_db_config -->|"connects"| node_legacy_database
node_legacy_auth -->|"loads"| node_legacy_bootstrap
node_admin -->|"loads"| node_legacy_bootstrap
node_admin -->|"loads"| node_legacy_db_config
node_admin -->|"loads"| node_legacy_auth
node_mechanic -->|"loads"| node_legacy_bootstrap
node_mechanic -->|"loads"| node_legacy_db_config
node_mechanic -->|"loads"| node_legacy_auth
node_customer_status -->|"loads"| node_legacy_bootstrap
node_customer_status -->|"loads"| node_legacy_db_config
node_customer_status -->|"loads"| node_legacy_auth
node_notifications -->|"uses"| node_mailer
node_notifications -->|"uses"| node_smtp
node_http_user -->|"requests"| node_public_entry
node_public_entry -->|"loads"| node_laravel_bootstrap
node_laravel_bootstrap -->|"configures routing"| node_web_routes

click node_booking_page "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/customer/book-service.php"
click node_booking_handler "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/process-booking.php"
click node_customer_status "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/customer/booking-status.php"
click node_customer_tracking "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/customer/track-status.php"
click node_customer_home "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/customer/home.php"
click node_admin "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/tree/main/legacy/admin"
click node_mechanic "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/tree/main/legacy/mechanic"
click node_legacy_login "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/tree/main/legacy"
click node_notifications "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/send-notification.php"
click node_mailer "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/phpmailer/src/PHPMailer.php"
click node_smtp "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/phpmailer/src/SMTP.php"
click node_legacy_bootstrap "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/bootstrap.php"
click node_legacy_auth "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/includes/auth.php"
click node_legacy_db_config "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/config/database.php"
click node_legacy_database "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/config/database.php"
click node_public_entry "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/public/index.php"
click node_laravel_bootstrap "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/bootstrap/app.php"
click node_web_routes "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/routes/web.php"
click node_user_model "https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/app/Models/User.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_booking_page,node_booking_handler,node_customer_status,node_customer_tracking,node_customer_home,node_legacy_login,node_http_user toneBlue
class node_admin,node_mechanic toneAmber
class node_notifications,node_mailer,node_smtp,node_legacy_bootstrap,node_legacy_auth,node_legacy_db_config,node_legacy_database toneMint
class node_public_entry,node_laravel_bootstrap,node_web_routes,node_user_model toneRose
class node_customer toneIndigo
```

## Components

### Customer portal

- [Book service](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/customer/book-service.php): `legacy/customer/book-service.php`
- [Booking processing](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/process-booking.php): `legacy/process-booking.php`
- [Booking status](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/customer/booking-status.php): `legacy/customer/booking-status.php`
- [Repair tracking](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/customer/track-status.php): `legacy/customer/track-status.php`
- [Customer home](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/customer/home.php): `legacy/customer/home.php`
- [Login and registration](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/tree/main/legacy): `legacy`

### Repair operations

- [Admin operations](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/tree/main/legacy/admin): `legacy/admin`
- [Mechanic workflow](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/tree/main/legacy/mechanic): `legacy/mechanic`

### Legacy core

- [Email notifications](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/send-notification.php): `legacy/send-notification.php`
- [PHPMailer](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/phpmailer/src/PHPMailer.php): `legacy/phpmailer/src/PHPMailer.php`
- [SMTP transport](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/phpmailer/src/SMTP.php): `legacy/phpmailer/src/SMTP.php`
- [Legacy bootstrap](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/bootstrap.php): `legacy/bootstrap.php`
- [Session authorization](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/includes/auth.php): `legacy/includes/auth.php`
- [DB connection](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/config/database.php): `legacy/config/database.php`
- [Repair portal database](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/legacy/config/database.php): `legacy/config/database.php`

### Laravel skeleton

- [Laravel entry](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/public/index.php): `public/index.php`
- [Laravel application setup](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [Web routes](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/routes/web.php): `routes/web.php`
- [Laravel user model](https://github.com/zed-mp3/motorcycle_repair_shop_laravel/blob/main/app/Models/User.php): `app/Models/User.php`

### Other components

- **Customer**
- **Web user**

## Connections

- Customer → Book service: opens (evidence: `legacy/customer/book-service.php`)
- Book service → Booking processing: submits booking (evidence: `legacy/customer/book-service.php`)
- Customer → Booking status: views bookings
- Customer → Repair tracking: tracks repair
- Customer → Customer home: opens home
- Login and registration → Email notifications: sends notification (evidence: `legacy/login.php`)
- Book service → Legacy bootstrap: loads (evidence: `legacy/customer/book-service.php`)
- Book service → DB connection: loads (evidence: `legacy/customer/book-service.php`)
- Book service → Session authorization: loads (evidence: `legacy/customer/book-service.php`)
- Legacy bootstrap → DB connection: loads (evidence: `legacy/bootstrap.php`)
- DB connection → Repair portal database: connects (evidence: `legacy/config/database.php`)
- Session authorization → Legacy bootstrap: loads (evidence: `legacy/includes/auth.php`)
- Admin operations → Legacy bootstrap: loads (evidence: `legacy/admin/mechanics.php`)
- Admin operations → DB connection: loads (evidence: `legacy/admin/mechanics.php`)
- Admin operations → Session authorization: loads (evidence: `legacy/admin/mechanics.php`)
- Mechanic workflow → Legacy bootstrap: loads (evidence: `legacy/mechanic/dashboard.php`)
- Mechanic workflow → DB connection: loads (evidence: `legacy/mechanic/dashboard.php`)
- Mechanic workflow → Session authorization: loads (evidence: `legacy/mechanic/dashboard.php`)
- Booking status → Legacy bootstrap: loads (evidence: `legacy/customer/booking-status.php`)
- Booking status → DB connection: loads (evidence: `legacy/customer/booking-status.php`)
- Booking status → Session authorization: loads (evidence: `legacy/customer/booking-status.php`)
- Email notifications → PHPMailer: uses (evidence: `legacy/send-notification.php`)
- Email notifications → SMTP transport: uses (evidence: `legacy/send-notification.php`)
- Web user → Laravel entry: requests (evidence: `public/index.php`)
- Laravel entry → Laravel application setup: loads (evidence: `public/index.php`)
- Laravel application setup → Web routes: configures routing (evidence: `bootstrap/app.php`)
