# qimie-dev/larave_training architecture

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

- Interactive diagram: https://gitdiagram.com/qimie-dev/larave_training
- Repository: https://github.com/qimie-dev/larave_training

## Overview

This is a Laravel 12 application skeleton with room and booking domain models, but its sampled controllers are empty, so no booking or room-management workflow is implemented in the shown code. The visible request path is HTTP entry, Laravel bootstrap and web-route dispatch; the models define a Room–Booking relationship. The README describes Laravel framework capabilities rather than application-specific features. Relationships are limited to those supported by the source index or excerpts; the welcome view’s behavior is not mapped.

Main entry points: [`routes/web.php`](https://github.com/qimie-dev/larave_training/blob/master/routes/web.php) (Web routes), [`public/index.php`](https://github.com/qimie-dev/larave_training/blob/master/public/index.php) (Public entry), [`bootstrap/app.php`](https://github.com/qimie-dev/larave_training/blob/master/bootstrap/app.php) (App bootstrap), [`app/Http/Controllers/RoomController.php`](https://github.com/qimie-dev/larave_training/blob/master/app/Http/Controllers/RoomController.php) (Room controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_request["Request handling"]
  node_entry["Public entry<br/>[index.php]"]
  node_bootstrap["App bootstrap<br/>[app.php]"]
  node_routes["Web routes<br/>[web.php]"]
  node_room_controller["Room controller<br/>[RoomController.php]"]
  node_booking_controller["Booking controller"]
  node_base_controller["Base controller<br/>[Controller.php]"]
end

subgraph group_domain["Domain models"]
  node_room["Room model<br/>[Room.php]"]
  node_booking["Booking model<br/>[Booking.php]"]
  node_user["User model<br/>[User.php]"]
end

subgraph group_support["Application support"]
  node_provider["App service provider"]
  node_user_factory["User factory<br/>[UserFactory.php]"]
  node_welcome["Welcome view<br/>[welcome.blade.php]"]
end

node_visitor(("HTTP client"))

node_visitor -->|"sends request"| node_entry
node_entry -->|"loads app"| node_bootstrap
node_bootstrap -->|"configures routes"| node_routes
node_routes -->|"routes to"| node_room_controller
node_routes -->|"routes to"| node_booking_controller
node_booking -->|"belongs to"| node_room
node_room -->|"has many"| node_booking
node_user_factory -->|"creates"| node_user
node_room_controller -->|"extends"| node_base_controller
node_booking_controller -->|"extends"| node_base_controller

click node_entry "https://github.com/qimie-dev/larave_training/blob/master/public/index.php"
click node_bootstrap "https://github.com/qimie-dev/larave_training/blob/master/bootstrap/app.php"
click node_routes "https://github.com/qimie-dev/larave_training/blob/master/routes/web.php"
click node_room_controller "https://github.com/qimie-dev/larave_training/blob/master/app/Http/Controllers/RoomController.php"
click node_booking_controller "https://github.com/qimie-dev/larave_training/blob/master/app/Http/Controllers/BookingController.php"
click node_base_controller "https://github.com/qimie-dev/larave_training/blob/master/app/Http/Controllers/Controller.php"
click node_room "https://github.com/qimie-dev/larave_training/blob/master/app/Models/Room.php"
click node_booking "https://github.com/qimie-dev/larave_training/blob/master/app/Models/Booking.php"
click node_user "https://github.com/qimie-dev/larave_training/blob/master/app/Models/User.php"
click node_provider "https://github.com/qimie-dev/larave_training/blob/master/app/Providers/AppServiceProvider.php"
click node_user_factory "https://github.com/qimie-dev/larave_training/blob/master/database/factories/UserFactory.php"
click node_welcome "https://github.com/qimie-dev/larave_training/blob/master/resources/views/welcome.blade.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_entry,node_bootstrap,node_routes,node_room_controller,node_booking_controller,node_base_controller,node_visitor toneBlue
class node_room,node_booking,node_user toneAmber
class node_provider,node_user_factory,node_welcome toneMint
```

## Components

### Request handling

- [Public entry](https://github.com/qimie-dev/larave_training/blob/master/public/index.php): `public/index.php`
- [App bootstrap](https://github.com/qimie-dev/larave_training/blob/master/bootstrap/app.php): `bootstrap/app.php`
- [Web routes](https://github.com/qimie-dev/larave_training/blob/master/routes/web.php): `routes/web.php`
- [Room controller](https://github.com/qimie-dev/larave_training/blob/master/app/Http/Controllers/RoomController.php): `app/Http/Controllers/RoomController.php`
- [Booking controller](https://github.com/qimie-dev/larave_training/blob/master/app/Http/Controllers/BookingController.php): `app/Http/Controllers/BookingController.php`
- [Base controller](https://github.com/qimie-dev/larave_training/blob/master/app/Http/Controllers/Controller.php): `app/Http/Controllers/Controller.php`

### Domain models

- [Room model](https://github.com/qimie-dev/larave_training/blob/master/app/Models/Room.php): `app/Models/Room.php`
- [Booking model](https://github.com/qimie-dev/larave_training/blob/master/app/Models/Booking.php): `app/Models/Booking.php`
- [User model](https://github.com/qimie-dev/larave_training/blob/master/app/Models/User.php): `app/Models/User.php`

### Application support

- [App service provider](https://github.com/qimie-dev/larave_training/blob/master/app/Providers/AppServiceProvider.php): `app/Providers/AppServiceProvider.php`
- [User factory](https://github.com/qimie-dev/larave_training/blob/master/database/factories/UserFactory.php): `database/factories/UserFactory.php`
- [Welcome view](https://github.com/qimie-dev/larave_training/blob/master/resources/views/welcome.blade.php): `resources/views/welcome.blade.php`

### Other components

- **HTTP client**

## Connections

- HTTP client → Public entry: sends request
- Public entry → App bootstrap: loads app (evidence: `public/index.php`)
- App bootstrap → Web routes: configures routes (evidence: `bootstrap/app.php`)
- Web routes → Room controller: routes to (evidence: `routes/web.php`)
- Web routes → Booking controller: routes to (evidence: `routes/web.php`)
- Booking model → Room model: belongs to (evidence: `app/Models/Booking.php`)
- Room model → Booking model: has many (evidence: `app/Models/Room.php`)
- User factory → User model: creates (evidence: `database/factories/UserFactory.php`)
- Room controller → Base controller: extends (evidence: `app/Http/Controllers/RoomController.php`)
- Booking controller → Base controller: extends (evidence: `app/Http/Controllers/BookingController.php`)
