# xnoxxs/servio-laravel architecture

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

- Interactive diagram: https://gitdiagram.com/xnoxxs/servio-laravel
- Repository: https://github.com/xnoxxs/servio-laravel

## Overview

This appears to be Servio, a Laravel service marketplace: customers browse listings, request and manage appointments, and post booking reviews; providers manage listings and booking decisions. The graph emphasizes the sampled controller/model workflow and the routes shown in the source index. The README describes Laravel generally rather than this product, and unsampled route targets, policies, and view behavior are not expanded.

Main entry points: [`routes/web.php`](https://github.com/xnoxxs/servio-laravel/blob/main/routes/web.php) (Web routes), [`app/Models/Service.php`](https://github.com/xnoxxs/servio-laravel/blob/main/app/Models/Service.php) (Service listings), [`app/Models/Booking.php`](https://github.com/xnoxxs/servio-laravel/blob/main/app/Models/Booking.php) (Booking state), [`app/Http/Controllers/CustomerBookingController.php`](https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/CustomerBookingController.php) (Customer bookings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_web_routes["Web routes<br/>[web.php]"]
end

subgraph group_identity["Accounts"]
  node_auth["Sign-in and registration"]
  node_login["Login handler"]
end

subgraph group_marketplace["Marketplace"]
  node_marketplace_browse["Browse services"]
  node_provider_services["Manage listings"]
end

subgraph group_appointments["Appointments"]
  node_customer_bookings["Customer bookings"]
  node_provider_bookings["Provider bookings"]
  node_booking_reviews["Booking reviews"]
end

subgraph group_domain["Marketplace domain"]
  node_service["Service listings<br/>[Service.php]"]
  node_category["Categories<br/>[Category.php]"]
  node_booking["Booking state<br/>[Booking.php]"]
  node_booking_status["Booking statuses<br/>[BookingStatus.php]"]
  node_review["Review records<br/>[Review.php]"]
  node_user["User accounts<br/>[User.php]"]
end

node_customer(("Customer"))
node_provider(("Provider"))

node_customer -->|"requests pages"| node_web_routes
node_provider -->|"requests pages"| node_web_routes
node_web_routes -->|"routes registration"| node_auth
node_web_routes -->|"routes sign-in"| node_login
node_web_routes -->|"routes browsing"| node_marketplace_browse
node_web_routes -->|"routes listings"| node_provider_services
node_web_routes -->|"routes bookings"| node_customer_bookings
node_web_routes -->|"routes provider actions"| node_provider_bookings
node_web_routes -->|"routes reviews"| node_booking_reviews
node_auth -->|"creates account"| node_user
node_login -.->|"authenticates"| node_user
node_marketplace_browse -->|"queries listings"| node_service
node_marketplace_browse -->|"queries categories"| node_category
node_provider_services -->|"creates and updates"| node_service
node_provider_services -->|"loads categories"| node_category
node_customer_bookings -->|"creates and transitions"| node_booking
node_customer_bookings -->|"checks listing"| node_service
node_customer_bookings -->|"sets pending status"| node_booking_status
node_provider_bookings -->|"manages bookings"| node_booking
node_provider_bookings -->|"changes status"| node_booking_status
node_booking_reviews -->|"adds review to"| node_booking
node_booking -->|"has one"| node_review
node_service -->|"belongs to"| node_category
node_service -->|"has bookings"| node_booking
node_user -->|"provider listings"| node_service
node_user -->|"customer bookings"| node_booking

click node_web_routes "https://github.com/xnoxxs/servio-laravel/blob/main/routes/web.php"
click node_auth "https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php"
click node_login "https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_marketplace_browse "https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/MarketplaceController.php"
click node_provider_services "https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/Provider/ServiceController.php"
click node_customer_bookings "https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/CustomerBookingController.php"
click node_provider_bookings "https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/Provider/BookingController.php"
click node_booking_reviews "https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/BookingReviewController.php"
click node_service "https://github.com/xnoxxs/servio-laravel/blob/main/app/Models/Service.php"
click node_category "https://github.com/xnoxxs/servio-laravel/blob/main/app/Models/Category.php"
click node_booking "https://github.com/xnoxxs/servio-laravel/blob/main/app/Models/Booking.php"
click node_booking_status "https://github.com/xnoxxs/servio-laravel/blob/main/app/Models/BookingStatus.php"
click node_review "https://github.com/xnoxxs/servio-laravel/blob/main/app/Models/Review.php"
click node_user "https://github.com/xnoxxs/servio-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_web_routes toneBlue
class node_auth,node_login toneAmber
class node_marketplace_browse,node_provider_services toneMint
class node_customer_bookings,node_provider_bookings,node_booking_reviews toneRose
class node_service,node_category,node_booking,node_booking_status,node_review,node_user,node_customer,node_provider toneIndigo
```

## Components

### Web entry

- [Web routes](https://github.com/xnoxxs/servio-laravel/blob/main/routes/web.php): `routes/web.php`

### Accounts

- [Sign-in and registration](https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php): `app/Http/Controllers/Auth/RegisteredUserController.php`
- [Login handler](https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`

### Marketplace

- [Browse services](https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/MarketplaceController.php): `app/Http/Controllers/MarketplaceController.php`
- [Manage listings](https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/Provider/ServiceController.php): `app/Http/Controllers/Provider/ServiceController.php`

### Appointments

- [Customer bookings](https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/CustomerBookingController.php): `app/Http/Controllers/CustomerBookingController.php`
- [Provider bookings](https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/Provider/BookingController.php): `app/Http/Controllers/Provider/BookingController.php`
- [Booking reviews](https://github.com/xnoxxs/servio-laravel/blob/main/app/Http/Controllers/BookingReviewController.php): `app/Http/Controllers/BookingReviewController.php`

### Marketplace domain

- [Service listings](https://github.com/xnoxxs/servio-laravel/blob/main/app/Models/Service.php): `app/Models/Service.php`
- [Categories](https://github.com/xnoxxs/servio-laravel/blob/main/app/Models/Category.php): `app/Models/Category.php`
- [Booking state](https://github.com/xnoxxs/servio-laravel/blob/main/app/Models/Booking.php): `app/Models/Booking.php`
- [Booking statuses](https://github.com/xnoxxs/servio-laravel/blob/main/app/Models/BookingStatus.php): `app/Models/BookingStatus.php`
- [Review records](https://github.com/xnoxxs/servio-laravel/blob/main/app/Models/Review.php): `app/Models/Review.php`
- [User accounts](https://github.com/xnoxxs/servio-laravel/blob/main/app/Models/User.php): `app/Models/User.php`

### Other components

- **Customer**
- **Provider**

## Connections

- Customer → Web routes: requests pages (evidence: `routes/web.php`)
- Provider → Web routes: requests pages (evidence: `routes/web.php`)
- Web routes → Sign-in and registration: routes registration (evidence: `routes/web.php`)
- Web routes → Login handler: routes sign-in (evidence: `routes/web.php`)
- Web routes → Browse services: routes browsing (evidence: `routes/web.php`)
- Web routes → Manage listings: routes listings (evidence: `routes/web.php`)
- Web routes → Customer bookings: routes bookings (evidence: `routes/web.php`)
- Web routes → Provider bookings: routes provider actions (evidence: `routes/web.php`)
- Web routes → Booking reviews: routes reviews (evidence: `routes/web.php`)
- Sign-in and registration → User accounts: creates account (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Login handler → User accounts: authenticates
- Browse services → Service listings: queries listings (evidence: `app/Http/Controllers/MarketplaceController.php`)
- Browse services → Categories: queries categories (evidence: `app/Http/Controllers/MarketplaceController.php`)
- Manage listings → Service listings: creates and updates (evidence: `app/Http/Controllers/Provider/ServiceController.php`)
- Manage listings → Categories: loads categories (evidence: `app/Http/Controllers/Provider/ServiceController.php`)
- Customer bookings → Booking state: creates and transitions (evidence: `app/Http/Controllers/CustomerBookingController.php`)
- Customer bookings → Service listings: checks listing (evidence: `app/Http/Controllers/CustomerBookingController.php`)
- Customer bookings → Booking statuses: sets pending status (evidence: `app/Http/Controllers/CustomerBookingController.php`)
- Provider bookings → Booking state: manages bookings (evidence: `app/Http/Controllers/Provider/BookingController.php`)
- Provider bookings → Booking statuses: changes status (evidence: `app/Http/Controllers/Provider/BookingController.php`)
- Booking reviews → Booking state: adds review to (evidence: `app/Http/Controllers/BookingReviewController.php`)
- Booking state → Review records: has one (evidence: `app/Models/Booking.php`)
- Service listings → Categories: belongs to (evidence: `app/Models/Service.php`)
- Service listings → Booking state: has bookings (evidence: `app/Models/Service.php`)
- User accounts → Service listings: provider listings (evidence: `app/Models/User.php`)
- User accounts → Booking state: customer bookings (evidence: `app/Models/User.php`)
