# fardhanfahrezy/tbloomcake architecture

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

- Interactive diagram: https://gitdiagram.com/fardhanfahrezy/tbloomcake
- Repository: https://github.com/fardhanfahrezy/tbloomcake

## Overview

This appears to be a Laravel bakery-ordering application: its model and migration names describe a product catalog, order and payment tracking, custom cake requests, and testimonials. The likely user journey is browsing products and availability, placing an order, then tracking its status and payment. The README describes Laravel itself, not this application. Route and controller contents were not sampled, so the graph does not infer HTTP-to-domain wiring; model relationships shown are those explicit in the sampled Order model.

Main entry points: [`database/migrations`](https://github.com/fardhanfahrezy/tbloomcake/tree/main/database/migrations) (Application database), [`app/Models/Order.php`](https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/Order.php) (Orders), [`public/index.php`](https://github.com/fardhanfahrezy/tbloomcake/blob/main/public/index.php) (HTTP entry), [`bootstrap/app.php`](https://github.com/fardhanfahrezy/tbloomcake/blob/main/bootstrap/app.php) (App bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_http["HTTP entry<br/>[index.php]"]
  node_app["App bootstrap<br/>[app.php]"]
  node_routes["Web routes<br/>[web.php]"]
  node_welcome["Welcome view<br/>[welcome.blade.php]"]
end

subgraph group_catalog["Product catalog"]
  node_product["Products<br/>[Product.php]"]
  node_variant["Product variants<br/>[ProductVariant.php]"]
  node_availability["Availability"]
  node_testimonial["Testimonials<br/>[Testimonial.php]"]
end

subgraph group_orders["Ordering"]
  node_order["Orders<br/>[Order.php]"]
  node_items["Order items<br/>[OrderItem.php]"]
  node_status["Status history"]
  node_payment["Payment transactions"]
  node_cake["Custom cake requests"]
  node_user["Users<br/>[User.php]"]
end

subgraph group_persistence["Persistence"]
  node_database[("Application database")]
end

node_customer(("Customer"))

node_customer -->|"sends request"| node_http
node_http -->|"handles request"| node_app
node_app -->|"loads web routes"| node_routes
node_order -->|"has many"| node_items
node_order -->|"has many"| node_status
node_order -->|"has many"| node_payment
node_product -->|"stores data"| node_database
node_variant -->|"stores data"| node_database
node_availability -->|"stores data"| node_database
node_testimonial -->|"stores data"| node_database
node_order -->|"stores data"| node_database
node_items -->|"stores data"| node_database
node_status -->|"stores data"| node_database
node_payment -->|"stores data"| node_database
node_cake -->|"stores data"| node_database
node_user -->|"stores data"| node_database

click node_http "https://github.com/fardhanfahrezy/tbloomcake/blob/main/public/index.php"
click node_app "https://github.com/fardhanfahrezy/tbloomcake/blob/main/bootstrap/app.php"
click node_routes "https://github.com/fardhanfahrezy/tbloomcake/blob/main/routes/web.php"
click node_welcome "https://github.com/fardhanfahrezy/tbloomcake/blob/main/resources/views/welcome.blade.php"
click node_product "https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/Product.php"
click node_variant "https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/ProductVariant.php"
click node_availability "https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/ProductAvailability.php"
click node_testimonial "https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/Testimonial.php"
click node_order "https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/Order.php"
click node_items "https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/OrderItem.php"
click node_status "https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/OrderStatusHistory.php"
click node_payment "https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/PaymentTransaction.php"
click node_cake "https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/CustomCakeRequest.php"
click node_user "https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/User.php"
click node_database "https://github.com/fardhanfahrezy/tbloomcake/tree/main/database/migrations"

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_http,node_app,node_routes,node_welcome toneBlue
class node_product,node_variant,node_availability,node_testimonial toneAmber
class node_order,node_items,node_status,node_payment,node_cake,node_user toneMint
class node_database toneRose
class node_customer toneIndigo
```

## Components

### Web entry

- [HTTP entry](https://github.com/fardhanfahrezy/tbloomcake/blob/main/public/index.php): `public/index.php`
- [App bootstrap](https://github.com/fardhanfahrezy/tbloomcake/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [Web routes](https://github.com/fardhanfahrezy/tbloomcake/blob/main/routes/web.php): `routes/web.php`
- [Welcome view](https://github.com/fardhanfahrezy/tbloomcake/blob/main/resources/views/welcome.blade.php): `resources/views/welcome.blade.php`

### Product catalog

- [Products](https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/Product.php): `app/Models/Product.php`
- [Product variants](https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/ProductVariant.php): `app/Models/ProductVariant.php`
- [Availability](https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/ProductAvailability.php): `app/Models/ProductAvailability.php`
- [Testimonials](https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/Testimonial.php): `app/Models/Testimonial.php`

### Ordering

- [Orders](https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/Order.php): `app/Models/Order.php`
- [Order items](https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/OrderItem.php): `app/Models/OrderItem.php`
- [Status history](https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/OrderStatusHistory.php): `app/Models/OrderStatusHistory.php`
- [Payment transactions](https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/PaymentTransaction.php): `app/Models/PaymentTransaction.php`
- [Custom cake requests](https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/CustomCakeRequest.php): `app/Models/CustomCakeRequest.php`
- [Users](https://github.com/fardhanfahrezy/tbloomcake/blob/main/app/Models/User.php): `app/Models/User.php`

### Persistence

- [Application database](https://github.com/fardhanfahrezy/tbloomcake/tree/main/database/migrations): `database/migrations`

### Other components

- **Customer**

## Connections

- Customer → HTTP entry: sends request
- HTTP entry → App bootstrap: handles request
- App bootstrap → Web routes: loads web routes
- Orders → Order items: has many
- Orders → Status history: has many
- Orders → Payment transactions: has many
- Products → Application database: stores data
- Product variants → Application database: stores data
- Availability → Application database: stores data
- Testimonials → Application database: stores data
- Orders → Application database: stores data
- Order items → Application database: stores data
- Status history → Application database: stores data
- Payment transactions → Application database: stores data
- Custom cake requests → Application database: stores data
- Users → Application database: stores data
