# rinsokhanaren/skincare-shop architecture

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

- Interactive diagram: https://gitdiagram.com/rinsokhanaren/skincare-shop
- Repository: https://github.com/rinsokhanaren/skincare-shop

## Overview

This is a Laravel storefront and inventory-management application. The principal customer workflow moves from product browsing and cart management through checkout, order creation, stock adjustment, and order notifications; customers can also manage accounts, wishlists, and reviews. Administrators manage products, orders, reviews, and operational records. The graph reflects only relationships visible in supplied excerpts or the source index; routes/web.php and several feature controllers were not inspected, so some entry points and capability links remain unverified.

Main entry points: [`app/Http/Controllers/CheckoutController.php`](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/CheckoutController.php) (Checkout), [`app/Http/Controllers/ReviewController.php`](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/ReviewController.php) (Customer reviews), [`app/Models/Product.php`](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/Product.php) (Product catalog), [`app/Http/Controllers/Admin/OrderController.php`](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/Admin/OrderController.php) (Order administration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Accounts and access"]
  node_auth["Authentication"]
end

subgraph group_storefront["Storefront shopping"]
  node_store["Product storefront"]
  node_cart["Cart<br/>[CartController.php]"]
  node_reviews["Customer reviews"]
  node_wishlist["Wishlist"]
end

subgraph group_orders["Orders and inventory"]
  node_checkout["Checkout"]
  node_stocklog["Stock logging<br/>[InventoryLog.php]"]
  node_notifications["Order notifications<br/>[OrderPlaced.php]"]
  node_invoice["Invoice PDF"]
end

subgraph group_admin["Administration"]
  node_adminproducts["Product administration"]
  node_adminorders["Order administration"]
  node_adminreviews["Review administration"]
  node_audit["Audit logging<br/>[AuditLogger.php]"]
end

subgraph group_data["Domain data"]
  node_user["User account<br/>[User.php]"]
  node_catalog["Product catalog<br/>[Product.php]"]
  node_variants["Product variants<br/>[ProductVariant.php]"]
  node_coupon["Coupons<br/>[Coupon.php]"]
  node_order["Order<br/>[Order.php]"]
  node_orderitems["Order items<br/>[OrderItem.php]"]
  node_database[("Application records")]
end

node_customer(("Customer"))
node_runtime["Laravel runtime<br/>[app.php]"]

node_customer -.->|"registers"| node_auth
node_auth -->|"creates account"| node_user
node_customer -.->|"browses"| node_store
node_customer -.->|"manages cart"| node_cart
node_customer -.->|"checks out"| node_checkout
node_checkout -->|"checks stock"| node_catalog
node_checkout -->|"checks stock"| node_variants
node_checkout -->|"validates discount"| node_coupon
node_checkout -->|"creates order"| node_order
node_checkout -->|"creates items"| node_orderitems
node_checkout -->|"logs stock changes"| node_stocklog
node_checkout -->|"queues email"| node_notifications
node_notifications -->|"uses invoice service"| node_invoice
node_catalog -->|"creates stock records"| node_stocklog
node_customer -.->|"submits review"| node_reviews
node_reviews -->|"checks product"| node_catalog
node_reviews -->|"stores review"| node_database
node_customer -.->|"manages wishlist"| node_wishlist
node_adminproducts -->|"manages products"| node_catalog
node_adminorders -->|"manages orders"| node_order
node_adminorders -->|"records actions"| node_audit
node_adminreviews -->|"moderates reviews"| node_reviews
node_adminreviews -->|"records actions"| node_audit
node_runtime -.->|"serves application"| node_database

click node_auth "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php"
click node_user "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/User.php"
click node_store "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/StoreController.php"
click node_cart "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/CartController.php"
click node_checkout "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/CheckoutController.php"
click node_catalog "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/Product.php"
click node_variants "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/ProductVariant.php"
click node_coupon "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/Coupon.php"
click node_order "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/Order.php"
click node_orderitems "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/OrderItem.php"
click node_stocklog "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/InventoryLog.php"
click node_notifications "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Mail/OrderPlaced.php"
click node_invoice "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Services/InvoicePdfService.php"
click node_reviews "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/ReviewController.php"
click node_wishlist "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/WishlistController.php"
click node_adminproducts "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/Admin/ProductController.php"
click node_adminorders "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/Admin/OrderController.php"
click node_adminreviews "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/Admin/ReviewController.php"
click node_audit "https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Services/AuditLogger.php"
click node_database "https://github.com/rinsokhanaren/skincare-shop/tree/main/app/Models"
click node_runtime "https://github.com/rinsokhanaren/skincare-shop/blob/main/bootstrap/app.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_auth toneBlue
class node_store,node_cart,node_reviews,node_wishlist toneAmber
class node_checkout,node_stocklog,node_notifications,node_invoice toneMint
class node_adminproducts,node_adminorders,node_adminreviews,node_audit toneRose
class node_user,node_catalog,node_variants,node_coupon,node_order,node_orderitems,node_database,node_customer toneIndigo
class node_runtime toneTeal
```

## Components

### Accounts and access

- [Authentication](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php): `app/Http/Controllers/Auth/RegisteredUserController.php`

### Storefront shopping

- [Product storefront](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/StoreController.php): `app/Http/Controllers/StoreController.php`
- [Cart](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/CartController.php): `app/Http/Controllers/CartController.php`
- [Customer reviews](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/ReviewController.php): `app/Http/Controllers/ReviewController.php`
- [Wishlist](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/WishlistController.php): `app/Http/Controllers/WishlistController.php`

### Orders and inventory

- [Checkout](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/CheckoutController.php): `app/Http/Controllers/CheckoutController.php`
- [Stock logging](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/InventoryLog.php): `app/Models/InventoryLog.php`
- [Order notifications](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Mail/OrderPlaced.php): `app/Mail/OrderPlaced.php`
- [Invoice PDF](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Services/InvoicePdfService.php): `app/Services/InvoicePdfService.php`

### Administration

- [Product administration](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/Admin/ProductController.php): `app/Http/Controllers/Admin/ProductController.php`
- [Order administration](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/Admin/OrderController.php): `app/Http/Controllers/Admin/OrderController.php`
- [Review administration](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Http/Controllers/Admin/ReviewController.php): `app/Http/Controllers/Admin/ReviewController.php`
- [Audit logging](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Services/AuditLogger.php): `app/Services/AuditLogger.php`

### Domain data

- [User account](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/User.php): `app/Models/User.php`
- [Product catalog](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/Product.php): `app/Models/Product.php`
- [Product variants](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/ProductVariant.php): `app/Models/ProductVariant.php`
- [Coupons](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/Coupon.php): `app/Models/Coupon.php`
- [Order](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/Order.php): `app/Models/Order.php`
- [Order items](https://github.com/rinsokhanaren/skincare-shop/blob/main/app/Models/OrderItem.php): `app/Models/OrderItem.php`
- [Application records](https://github.com/rinsokhanaren/skincare-shop/tree/main/app/Models): `app/Models`

### Other components

- **Customer**
- [Laravel runtime](https://github.com/rinsokhanaren/skincare-shop/blob/main/bootstrap/app.php): `bootstrap/app.php`

## Connections

- Customer → Authentication: registers
- Authentication → User account: creates account (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Customer → Product storefront: browses
- Customer → Cart: manages cart
- Customer → Checkout: checks out
- Checkout → Product catalog: checks stock (evidence: `app/Http/Controllers/CheckoutController.php`)
- Checkout → Product variants: checks stock (evidence: `app/Http/Controllers/CheckoutController.php`)
- Checkout → Coupons: validates discount (evidence: `app/Http/Controllers/CheckoutController.php`)
- Checkout → Order: creates order (evidence: `app/Http/Controllers/CheckoutController.php`)
- Checkout → Order items: creates items (evidence: `app/Http/Controllers/CheckoutController.php`)
- Checkout → Stock logging: logs stock changes (evidence: `app/Http/Controllers/CheckoutController.php`)
- Checkout → Order notifications: queues email (evidence: `app/Http/Controllers/CheckoutController.php`)
- Order notifications → Invoice PDF: uses invoice service (evidence: `app/Mail/OrderPlaced.php`)
- Product catalog → Stock logging: creates stock records (evidence: `app/Models/Product.php`)
- Customer → Customer reviews: submits review
- Customer reviews → Product catalog: checks product (evidence: `app/Http/Controllers/ReviewController.php`)
- Customer reviews → Application records: stores review (evidence: `app/Http/Controllers/ReviewController.php`)
- Customer → Wishlist: manages wishlist
- Product administration → Product catalog: manages products (evidence: `app/Http/Controllers/Admin/ProductController.php`)
- Order administration → Order: manages orders (evidence: `app/Http/Controllers/Admin/OrderController.php`)
- Order administration → Audit logging: records actions (evidence: `app/Http/Controllers/Admin/OrderController.php`)
- Review administration → Customer reviews: moderates reviews (evidence: `app/Http/Controllers/Admin/ReviewController.php`)
- Review administration → Audit logging: records actions (evidence: `app/Http/Controllers/Admin/ReviewController.php`)
- Laravel runtime → Application records: serves application
