# dndaksh901/eservice architecture

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

- Interactive diagram: https://gitdiagram.com/dndaksh901/eservice
- Repository: https://github.com/dndaksh901/eservice

## Overview

Eservice is a Laravel marketplace connecting customers with service vendors, with booking, reviews, payments, messaging, and administration visible in the tree. The likely customer journey is to discover a vendor profile, arrange a booking, and review the service; booking and review model interactions are supported by the source index. The README is generic Laravel material and does not document product behavior, and routes and several controllers were not sampled, so some workflow links are intentionally unverified. The graph preserves major product areas indicated by the repository without asserting undocumented wiring.

Main entry points: [`app/Models/Profile.php`](https://github.com/dndaksh901/eservice/blob/main/app/Models/Profile.php) (Service profile), [`app/Models/Vendor.php`](https://github.com/dndaksh901/eservice/blob/main/app/Models/Vendor.php) (Vendor account), [`app/Http/Controllers/BookingController.php`](https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/BookingController.php) (Booking management), [`routes/web.php`](https://github.com/dndaksh901/eservice/blob/main/routes/web.php) (Web routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_routes["Web routes<br/>[web.php]"]
  node_route_provider["Route registration"]
end

subgraph group_market["Marketplace"]
  node_home["Home and discovery<br/>[HomeController.php]"]
  node_search_view["Search results<br/>[search.blade.php]"]
  node_occupation["Service categories<br/>[Occupation.php]"]
  node_geo["Location catalog<br/>[Country.php]"]
  node_state["States and cities<br/>[State.php]"]
  node_city["City records<br/>[City.php]"]
  node_profile["Service profile<br/>[Profile.php]"]
  node_profile_image["Profile images<br/>[ProfileImage.php]"]
end

subgraph group_accounts["Accounts and admin"]
  node_vendor["Vendor account<br/>[Vendor.php]"]
  node_user["Customer account<br/>[User.php]"]
  node_registration["Registration"]
  node_admin["Admin console"]
  node_admin_model["Admin account<br/>[Admin.php]"]
end

subgraph group_engagement["Service interactions"]
  node_booking_flow["Booking management"]
  node_booking["Booking records<br/>[Booking.php]"]
  node_hours["Business hours<br/>[BusinessHour.php]"]
  node_reviews["Reviews"]
  node_review_model["Review records<br/>[Review.php]"]
  node_chat["Messaging<br/>[ChatController.php]"]
  node_payment["Payment handling"]
  node_notifications["Notifications<br/>[Notification.php]"]
end

subgraph group_platform["Shared domain"]
  node_exception_handler["Exception handling<br/>[Handler.php]"]
  node_controller_base["Controller base<br/>[Controller.php]"]
end

node_visitor(("Customer"))
node_vendor_actor(("Vendor"))
node_admin_actor(("Administrator"))

node_route_provider -->|"registers"| node_routes
node_visitor -.->|"requests pages"| node_routes
node_vendor_actor -.->|"uses portal"| node_routes
node_admin_actor -.->|"uses console"| node_routes
node_routes -.->|"routes requests"| node_home
node_home -.->|"renders results"| node_search_view
node_home -.->|"uses categories"| node_occupation
node_profile -->|"belongs to"| node_vendor
node_profile -->|"belongs to"| node_occupation
node_profile -->|"belongs to"| node_geo
node_profile -->|"belongs to"| node_state
node_profile -->|"belongs to"| node_city
node_state -->|"belongs to"| node_geo
node_state -->|"has cities"| node_city
node_vendor -->|"has profile"| node_profile
node_vendor -->|"has images"| node_profile_image
node_registration -->|"creates account"| node_user
node_registration -->|"creates vendor"| node_vendor
node_registration -->|"creates admin"| node_admin_model
node_admin -->|"manages vendors"| node_vendor
node_admin -->|"authenticates"| node_admin_model
node_visitor -.->|"requests booking"| node_booking_flow
node_booking_flow -->|"manages bookings"| node_booking
node_booking_flow -->|"checks hours"| node_hours
node_booking_flow -->|"uses profile"| node_profile
node_booking_flow -->|"uses vendor"| node_vendor
node_booking_flow -->|"uses notifications"| node_notifications
node_visitor -.->|"submits review"| node_reviews
node_reviews -->|"creates and reads"| node_review_model
node_reviews -->|"updates rating"| node_profile
node_reviews -->|"validates vendor"| node_vendor
node_visitor -.->|"messages vendor"| node_chat
node_visitor -.->|"pays online"| node_payment
node_exception_handler -.->|"handles requests"| node_controller_base

click node_routes "https://github.com/dndaksh901/eservice/blob/main/routes/web.php"
click node_route_provider "https://github.com/dndaksh901/eservice/blob/main/app/Providers/RouteServiceProvider.php"
click node_home "https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/HomeController.php"
click node_search_view "https://github.com/dndaksh901/eservice/blob/main/resources/views/search.blade.php"
click node_occupation "https://github.com/dndaksh901/eservice/blob/main/app/Models/Occupation.php"
click node_geo "https://github.com/dndaksh901/eservice/blob/main/app/Models/Country.php"
click node_state "https://github.com/dndaksh901/eservice/blob/main/app/Models/State.php"
click node_city "https://github.com/dndaksh901/eservice/blob/main/app/Models/City.php"
click node_vendor "https://github.com/dndaksh901/eservice/blob/main/app/Models/Vendor.php"
click node_profile "https://github.com/dndaksh901/eservice/blob/main/app/Models/Profile.php"
click node_user "https://github.com/dndaksh901/eservice/blob/main/app/Models/User.php"
click node_registration "https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/Auth/RegisterController.php"
click node_admin "https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/Admin/AdminController.php"
click node_booking_flow "https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/BookingController.php"
click node_booking "https://github.com/dndaksh901/eservice/blob/main/app/Models/Booking.php"
click node_hours "https://github.com/dndaksh901/eservice/blob/main/app/Models/BusinessHour.php"
click node_reviews "https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/ReviewController.php"
click node_review_model "https://github.com/dndaksh901/eservice/blob/main/app/Models/Review.php"
click node_chat "https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/ChatController.php"
click node_payment "https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/RazorpayController.php"
click node_notifications "https://github.com/dndaksh901/eservice/blob/main/app/Models/Notification.php"
click node_exception_handler "https://github.com/dndaksh901/eservice/blob/main/app/Exceptions/Handler.php"
click node_controller_base "https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/Controller.php"
click node_admin_model "https://github.com/dndaksh901/eservice/blob/main/app/Models/Admin.php"
click node_profile_image "https://github.com/dndaksh901/eservice/blob/main/app/Models/ProfileImage.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_route_provider toneBlue
class node_home,node_search_view,node_occupation,node_geo,node_state,node_city,node_profile,node_profile_image toneAmber
class node_vendor,node_user,node_registration,node_admin,node_admin_model toneMint
class node_booking_flow,node_booking,node_hours,node_reviews,node_review_model,node_chat,node_payment,node_notifications toneRose
class node_exception_handler,node_controller_base,node_visitor,node_vendor_actor,node_admin_actor toneIndigo
```

## Components

### Web entry

- [Web routes](https://github.com/dndaksh901/eservice/blob/main/routes/web.php): `routes/web.php`
- [Route registration](https://github.com/dndaksh901/eservice/blob/main/app/Providers/RouteServiceProvider.php): `app/Providers/RouteServiceProvider.php`

### Marketplace

- [Home and discovery](https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/HomeController.php): `app/Http/Controllers/HomeController.php`
- [Search results](https://github.com/dndaksh901/eservice/blob/main/resources/views/search.blade.php): `resources/views/search.blade.php`
- [Service categories](https://github.com/dndaksh901/eservice/blob/main/app/Models/Occupation.php): `app/Models/Occupation.php`
- [Location catalog](https://github.com/dndaksh901/eservice/blob/main/app/Models/Country.php): `app/Models/Country.php`
- [States and cities](https://github.com/dndaksh901/eservice/blob/main/app/Models/State.php): `app/Models/State.php`
- [City records](https://github.com/dndaksh901/eservice/blob/main/app/Models/City.php): `app/Models/City.php`
- [Service profile](https://github.com/dndaksh901/eservice/blob/main/app/Models/Profile.php): `app/Models/Profile.php`
- [Profile images](https://github.com/dndaksh901/eservice/blob/main/app/Models/ProfileImage.php): `app/Models/ProfileImage.php`

### Accounts and admin

- [Vendor account](https://github.com/dndaksh901/eservice/blob/main/app/Models/Vendor.php): `app/Models/Vendor.php`
- [Customer account](https://github.com/dndaksh901/eservice/blob/main/app/Models/User.php): `app/Models/User.php`
- [Registration](https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/Auth/RegisterController.php): `app/Http/Controllers/Auth/RegisterController.php`
- [Admin console](https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/Admin/AdminController.php): `app/Http/Controllers/Admin/AdminController.php`
- [Admin account](https://github.com/dndaksh901/eservice/blob/main/app/Models/Admin.php): `app/Models/Admin.php`

### Service interactions

- [Booking management](https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/BookingController.php): `app/Http/Controllers/BookingController.php`
- [Booking records](https://github.com/dndaksh901/eservice/blob/main/app/Models/Booking.php): `app/Models/Booking.php`
- [Business hours](https://github.com/dndaksh901/eservice/blob/main/app/Models/BusinessHour.php): `app/Models/BusinessHour.php`
- [Reviews](https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/ReviewController.php): `app/Http/Controllers/ReviewController.php`
- [Review records](https://github.com/dndaksh901/eservice/blob/main/app/Models/Review.php): `app/Models/Review.php`
- [Messaging](https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/ChatController.php): `app/Http/Controllers/ChatController.php`
- [Payment handling](https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/RazorpayController.php): `app/Http/Controllers/RazorpayController.php`
- [Notifications](https://github.com/dndaksh901/eservice/blob/main/app/Models/Notification.php): `app/Models/Notification.php`

### Shared domain

- [Exception handling](https://github.com/dndaksh901/eservice/blob/main/app/Exceptions/Handler.php): `app/Exceptions/Handler.php`
- [Controller base](https://github.com/dndaksh901/eservice/blob/main/app/Http/Controllers/Controller.php): `app/Http/Controllers/Controller.php`

### Other components

- **Customer**
- **Vendor**
- **Administrator**

## Connections

- Route registration → Web routes: registers (evidence: `app/Providers/RouteServiceProvider.php`)
- Customer → Web routes: requests pages
- Vendor → Web routes: uses portal
- Administrator → Web routes: uses console
- Web routes → Home and discovery: routes requests
- Home and discovery → Search results: renders results
- Home and discovery → Service categories: uses categories
- Service profile → Vendor account: belongs to (evidence: `app/Models/Profile.php`)
- Service profile → Service categories: belongs to (evidence: `app/Models/Profile.php`)
- Service profile → Location catalog: belongs to (evidence: `app/Models/Profile.php`)
- Service profile → States and cities: belongs to (evidence: `app/Models/Profile.php`)
- Service profile → City records: belongs to (evidence: `app/Models/Profile.php`)
- States and cities → Location catalog: belongs to (evidence: `app/Models/State.php`)
- States and cities → City records: has cities (evidence: `app/Models/State.php`)
- Vendor account → Service profile: has profile (evidence: `app/Models/Vendor.php`)
- Vendor account → Profile images: has images (evidence: `app/Models/Vendor.php`)
- Registration → Customer account: creates account (evidence: `app/Http/Controllers/Auth/RegisterController.php`)
- Registration → Vendor account: creates vendor (evidence: `app/Http/Controllers/Auth/RegisterController.php`)
- Registration → Admin account: creates admin (evidence: `app/Http/Controllers/Auth/RegisterController.php`)
- Admin console → Vendor account: manages vendors (evidence: `app/Http/Controllers/Admin/AdminController.php`)
- Admin console → Admin account: authenticates (evidence: `app/Http/Controllers/Admin/AdminController.php`)
- Customer → Booking management: requests booking
- Booking management → Booking records: manages bookings (evidence: `app/Http/Controllers/BookingController.php`)
- Booking management → Business hours: checks hours (evidence: `app/Http/Controllers/BookingController.php`)
- Booking management → Service profile: uses profile (evidence: `app/Http/Controllers/BookingController.php`)
- Booking management → Vendor account: uses vendor (evidence: `app/Http/Controllers/BookingController.php`)
- Booking management → Notifications: uses notifications (evidence: `app/Http/Controllers/BookingController.php`)
- Customer → Reviews: submits review
- Reviews → Review records: creates and reads (evidence: `app/Http/Controllers/ReviewController.php`)
- Reviews → Service profile: updates rating (evidence: `app/Http/Controllers/ReviewController.php`)
- Reviews → Vendor account: validates vendor (evidence: `app/Http/Controllers/ReviewController.php`)
- Customer → Messaging: messages vendor
- Customer → Payment handling: pays online
- Exception handling → Controller base: handles requests
