# adhimayufan-hub/projek- architecture

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

- Interactive diagram: https://gitdiagram.com/adhimayufan-hub/projek-
- Repository: https://github.com/adhimayufan-hub/projek-

## Overview

This is a Laravel web application for Table Tales, a board-game and mahjong café. The visible customer journey includes browsing a game catalog and making or checking a reservation; the repository also includes authentication, profile and loyalty controllers, and admin game, category, reservation, and dashboard areas. The graph reflects relationships supported by excerpts or the source index; routes and several feature implementations were not sampled, so their connections are intentionally omitted.

Main entry points: [`app/Models/Game.php`](https://github.com/adhimayufan-hub/projek-/blob/main/app/Models/Game.php) (Game records), [`app/Models/KategoriGame.php`](https://github.com/adhimayufan-hub/projek-/blob/main/app/Models/KategoriGame.php) (Game categories), [`app/Models/User.php`](https://github.com/adhimayufan-hub/projek-/blob/main/app/Models/User.php) (User accounts), [`app/Http/Controllers/Admin/DashboardController.php`](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Admin/DashboardController.php) (Admin dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_bootstrap["Application bootstrap<br/>[app.php]"]
  node_locale["Locale middleware<br/>[SetLocale.php]"]
end

subgraph group_customer["Customer features"]
  node_auth["Authentication"]
  node_registration["Registration"]
  node_verification["Email verification"]
  node_verification_notice["Verification notices"]
  node_login_request["Login validation<br/>[LoginRequest.php]"]
  node_catalog["Game catalog"]
  node_reservations["Reservations"]
  node_dashboard["User dashboard"]
  node_profile["Profile management"]
  node_profile_request["Profile validation"]
  node_loyalty["Loyalty features"]
  node_animations["Page animations<br/>[animations.js]"]
end

subgraph group_admin["Administration"]
  node_admin_dashboard["Admin dashboard"]
  node_game_admin["Game management<br/>[GameController.php]"]
  node_category_admin["Category management"]
end

subgraph group_data["Domain and persistence"]
  node_game[("Game records<br/>[Game.php]")]
  node_game_category[("Game categories<br/>[KategoriGame.php]")]
  node_reservation_data[("Reservation records<br/>[Reservasi.php]")]
  node_user[("User accounts<br/>[User.php]")]
  node_user_factory["User factory<br/>[UserFactory.php]"]
  node_game_seeder["Game catalog seed<br/>[GameListSeeder.php]"]
end

node_visitor(("Visitor"))

node_visitor -->|"requests pages"| node_bootstrap
node_bootstrap -->|"appends middleware"| node_locale
node_auth -->|"authenticates with"| node_login_request
node_registration -->|"creates account"| node_user
node_catalog -->|"queries games"| node_game
node_reservations -->|"creates and looks up"| node_reservation_data
node_game_admin -->|"manages games"| node_game
node_game_admin -->|"loads categories"| node_game_category
node_category_admin -->|"manages categories"| node_game_category
node_admin_dashboard -->|"reads reservations"| node_reservation_data
node_admin_dashboard -->|"reads games"| node_game
node_game -->|"belongs to"| node_game_category
node_profile -->|"uses validation"| node_profile_request
node_profile_request -->|"validates against"| node_user
node_user_factory -->|"builds users"| node_user
node_game_seeder -->|"seeds games"| node_game
node_game_seeder -->|"seeds categories"| node_game_category
node_verification_notice -.->|"notifies account"| node_user
node_animations -.->|"animates pages"| node_visitor

click node_bootstrap "https://github.com/adhimayufan-hub/projek-/blob/main/bootstrap/app.php"
click node_locale "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Middleware/SetLocale.php"
click node_auth "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_registration "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php"
click node_verification "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Auth/VerifyEmailController.php"
click node_verification_notice "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Auth/EmailVerificationNotificationController.php"
click node_login_request "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Requests/Auth/LoginRequest.php"
click node_catalog "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/KatalogController.php"
click node_reservations "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/ReservasiController.php"
click node_dashboard "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/DashboardController.php"
click node_profile "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/ProfileController.php"
click node_profile_request "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Requests/ProfileUpdateRequest.php"
click node_loyalty "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/LoyaltyController.php"
click node_admin_dashboard "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Admin/DashboardController.php"
click node_game_admin "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Admin/GameController.php"
click node_category_admin "https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Admin/KategoriGameController.php"
click node_game "https://github.com/adhimayufan-hub/projek-/blob/main/app/Models/Game.php"
click node_game_category "https://github.com/adhimayufan-hub/projek-/blob/main/app/Models/KategoriGame.php"
click node_reservation_data "https://github.com/adhimayufan-hub/projek-/blob/main/app/Models/Reservasi.php"
click node_user "https://github.com/adhimayufan-hub/projek-/blob/main/app/Models/User.php"
click node_user_factory "https://github.com/adhimayufan-hub/projek-/blob/main/database/factories/UserFactory.php"
click node_game_seeder "https://github.com/adhimayufan-hub/projek-/blob/main/database/seeders/GameListSeeder.php"
click node_animations "https://github.com/adhimayufan-hub/projek-/blob/main/resources/js/animations.js"

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_bootstrap,node_locale toneBlue
class node_auth,node_registration,node_verification,node_verification_notice,node_login_request,node_catalog,node_reservations,node_dashboard,node_profile,node_profile_request,node_loyalty,node_animations toneAmber
class node_admin_dashboard,node_game_admin,node_category_admin toneMint
class node_game,node_game_category,node_reservation_data,node_user,node_user_factory,node_game_seeder toneRose
class node_visitor toneIndigo
```

## Components

### Web entry

- [Application bootstrap](https://github.com/adhimayufan-hub/projek-/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [Locale middleware](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Middleware/SetLocale.php): `app/Http/Middleware/SetLocale.php`

### Customer features

- [Authentication](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- [Registration](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php): `app/Http/Controllers/Auth/RegisteredUserController.php`
- [Email verification](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Auth/VerifyEmailController.php): `app/Http/Controllers/Auth/VerifyEmailController.php`
- [Verification notices](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Auth/EmailVerificationNotificationController.php): `app/Http/Controllers/Auth/EmailVerificationNotificationController.php`
- [Login validation](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Requests/Auth/LoginRequest.php): `app/Http/Requests/Auth/LoginRequest.php`
- [Game catalog](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/KatalogController.php): `app/Http/Controllers/KatalogController.php`
- [Reservations](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/ReservasiController.php): `app/Http/Controllers/ReservasiController.php`
- [User dashboard](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`
- [Profile management](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/ProfileController.php): `app/Http/Controllers/ProfileController.php`
- [Profile validation](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Requests/ProfileUpdateRequest.php): `app/Http/Requests/ProfileUpdateRequest.php`
- [Loyalty features](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/LoyaltyController.php): `app/Http/Controllers/LoyaltyController.php`
- [Page animations](https://github.com/adhimayufan-hub/projek-/blob/main/resources/js/animations.js): `resources/js/animations.js`

### Administration

- [Admin dashboard](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Admin/DashboardController.php): `app/Http/Controllers/Admin/DashboardController.php`
- [Game management](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Admin/GameController.php): `app/Http/Controllers/Admin/GameController.php`
- [Category management](https://github.com/adhimayufan-hub/projek-/blob/main/app/Http/Controllers/Admin/KategoriGameController.php): `app/Http/Controllers/Admin/KategoriGameController.php`

### Domain and persistence

- [Game records](https://github.com/adhimayufan-hub/projek-/blob/main/app/Models/Game.php): `app/Models/Game.php`
- [Game categories](https://github.com/adhimayufan-hub/projek-/blob/main/app/Models/KategoriGame.php): `app/Models/KategoriGame.php`
- [Reservation records](https://github.com/adhimayufan-hub/projek-/blob/main/app/Models/Reservasi.php): `app/Models/Reservasi.php`
- [User accounts](https://github.com/adhimayufan-hub/projek-/blob/main/app/Models/User.php): `app/Models/User.php`
- [User factory](https://github.com/adhimayufan-hub/projek-/blob/main/database/factories/UserFactory.php): `database/factories/UserFactory.php`
- [Game catalog seed](https://github.com/adhimayufan-hub/projek-/blob/main/database/seeders/GameListSeeder.php): `database/seeders/GameListSeeder.php`

### Other components

- **Visitor**

## Connections

- Visitor → Application bootstrap: requests pages
- Application bootstrap → Locale middleware: appends middleware (evidence: `bootstrap/app.php`)
- Authentication → Login validation: authenticates with (evidence: `app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- Registration → User accounts: creates account (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Game catalog → Game records: queries games (evidence: `app/Http/Controllers/KatalogController.php`)
- Reservations → Reservation records: creates and looks up (evidence: `app/Http/Controllers/ReservasiController.php`)
- Game management → Game records: manages games (evidence: `app/Http/Controllers/Admin/GameController.php`)
- Game management → Game categories: loads categories (evidence: `app/Http/Controllers/Admin/GameController.php`)
- Category management → Game categories: manages categories (evidence: `app/Http/Controllers/Admin/KategoriGameController.php`)
- Admin dashboard → Reservation records: reads reservations (evidence: `app/Http/Controllers/Admin/DashboardController.php`)
- Admin dashboard → Game records: reads games (evidence: `app/Http/Controllers/Admin/DashboardController.php`)
- Game records → Game categories: belongs to (evidence: `app/Models/Game.php`)
- Profile management → Profile validation: uses validation (evidence: `app/Http/Controllers/ProfileController.php`)
- Profile validation → User accounts: validates against (evidence: `app/Http/Requests/ProfileUpdateRequest.php`)
- User factory → User accounts: builds users (evidence: `database/factories/UserFactory.php`)
- Game catalog seed → Game records: seeds games (evidence: `database/seeders/GameListSeeder.php`)
- Game catalog seed → Game categories: seeds categories (evidence: `database/seeders/GameListSeeder.php`)
- Verification notices → User accounts: notifies account
- Page animations → Visitor: animates pages
