# fikrisuheri/laravel-toko-online architecture

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

- Interactive diagram: https://gitdiagram.com/fikrisuheri/laravel-toko-online
- Repository: https://github.com/fikrisuheri/laravel-toko-online

## Overview

Fikri Sport is a Laravel sports-commerce application. Customers browse products, manage a cart and address, check out, then track orders and submit payment proof; administrators manage catalog data and move orders through payment, shipping, completion, or cancellation. The excerpts confirm order creation, order-detail reads, and admin payment confirmation/shipping updates. Routes and most catalog, address, and checkout implementations were not sampled, so their connections are left unverified rather than inferred.

Main entry points: [`app/Providers/RouteServiceProvider.php`](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Providers/RouteServiceProvider.php) (Web routing), [`app/Http/Controllers/user/OrderController.php`](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/user/OrderController.php) (Customer orders), [`app/Http/Controllers/admin/TransaksiController.php`](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/admin/TransaksiController.php) (Order operations), [`bootstrap/app.php`](https://github.com/fikrisuheri/laravel-toko-online/blob/master/bootstrap/app.php) (App bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Customer storefront"]
  node_catalog["Product catalog"]
  node_categories["Categories"]
  node_cart["Shopping cart"]
  node_address["Customer address"]
  node_cart_model[("Cart records<br/>[Keranjang.php]")]
  node_product_model[("Product records<br/>[Product.php]")]
  node_category_model[("Category records<br/>[Categories.php]")]
  node_address_model[("Address records<br/>[Alamat.php]")]
  node_web_views["Storefront views<br/>[app.blade.php]"]
end

subgraph group_orders["Order lifecycle"]
  node_checkout["Checkout"]
  node_customer_orders["Customer orders"]
  node_order_model[("Order records<br/>[Order.php]")]
  node_detail_model[("Order lines<br/>[Detailorder.php]")]
  node_order_views["Order views<br/>[order.blade.php]"]
end

subgraph group_admin["Administration"]
  node_admin_orders["Order operations"]
  node_dashboard["Sales dashboard"]
  node_product_admin["Product management"]
  node_admin_categories["Category management"]
  node_admin_customers["Customer management"]
  node_settings["Store settings"]
  node_accounts["Bank accounts"]
  node_account_model[("Bank records<br/>[Rekening.php]")]
  node_admin_views["Admin views<br/>[app.blade.php]"]
end

subgraph group_core["Application core"]
  node_routing["Web routing"]
  node_user_model[("User records<br/>[User.php]")]
  node_app_entry["HTTP application<br/>[index.php]"]
  node_app_bootstrap["App bootstrap<br/>[app.php]"]
  node_auth_provider["Authorization setup"]
end

node_customer(("Customer"))
node_external_shipping["RajaOngkir API"]

node_customer -.->|"sends requests"| node_routing
node_routing -.->|"routes requests"| node_catalog
node_routing -.->|"routes requests"| node_cart
node_routing -.->|"routes requests"| node_address
node_routing -.->|"routes requests"| node_checkout
node_routing -.->|"routes requests"| node_customer_orders
node_routing -.->|"routes requests"| node_admin_orders
node_app_entry -->|"loads"| node_app_bootstrap
node_app_bootstrap -.->|"registers routes"| node_routing
node_routing -->|"maps route files"| node_app_bootstrap
node_customer_orders -->|"creates and reads"| node_order_model
node_customer_orders -->|"creates and reads"| node_detail_model
node_customer_orders -->|"reads and clears"| node_cart_model
node_customer_orders -->|"loads accounts"| node_account_model
node_customer_orders -->|"renders"| node_order_views
node_admin_orders -->|"updates status"| node_order_model
node_admin_orders -->|"reads order lines"| node_detail_model
node_admin_orders -->|"decrements stock"| node_product_model
node_admin_orders -.->|"renders"| node_admin_views
node_dashboard -->|"reads metrics"| node_order_model
node_dashboard -->|"counts customers"| node_user_model
node_product_admin -->|"manages products"| node_product_model
node_product_admin -->|"loads categories"| node_category_model
node_external_shipping -.->|"shipping estimates"| node_checkout
node_external_shipping -.-> node_external_shipping

click node_routing "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Providers/RouteServiceProvider.php"
click node_catalog "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/user/ProdukController.php"
click node_categories "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/KategoriController.php"
click node_cart "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/user/KeranjangController.php"
click node_address "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/user/AlamatController.php"
click node_checkout "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/user/CheckoutController.php"
click node_customer_orders "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/user/OrderController.php"
click node_admin_orders "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/admin/TransaksiController.php"
click node_dashboard "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/DashboardController.php"
click node_product_admin "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/admin/ProductController.php"
click node_admin_categories "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/admin/CategoriesController.php"
click node_admin_customers "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/admin/PelangganController.php"
click node_settings "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/admin/PengaturanController.php"
click node_accounts "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/admin/RekeningController.php"
click node_order_model "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Order.php"
click node_detail_model "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Detailorder.php"
click node_cart_model "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Keranjang.php"
click node_product_model "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Product.php"
click node_category_model "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Categories.php"
click node_address_model "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Alamat.php"
click node_account_model "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Rekening.php"
click node_user_model "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/User.php"
click node_web_views "https://github.com/fikrisuheri/laravel-toko-online/blob/master/resources/views/user/app.blade.php"
click node_order_views "https://github.com/fikrisuheri/laravel-toko-online/blob/master/resources/views/user/order/order.blade.php"
click node_admin_views "https://github.com/fikrisuheri/laravel-toko-online/blob/master/resources/views/admin/layout/app.blade.php"
click node_app_entry "https://github.com/fikrisuheri/laravel-toko-online/blob/master/public/index.php"
click node_app_bootstrap "https://github.com/fikrisuheri/laravel-toko-online/blob/master/bootstrap/app.php"
click node_auth_provider "https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Providers/AuthServiceProvider.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_catalog,node_categories,node_cart,node_address,node_cart_model,node_product_model,node_category_model,node_address_model,node_web_views toneBlue
class node_checkout,node_customer_orders,node_order_model,node_detail_model,node_order_views toneAmber
class node_admin_orders,node_dashboard,node_product_admin,node_admin_categories,node_admin_customers,node_settings,node_accounts,node_account_model,node_admin_views,node_external_shipping toneMint
class node_routing,node_user_model,node_app_entry,node_app_bootstrap,node_auth_provider toneRose
class node_customer toneIndigo
```

## Components

### Customer storefront

- [Product catalog](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/user/ProdukController.php): `app/Http/Controllers/user/ProdukController.php`
- [Categories](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/KategoriController.php): `app/Http/Controllers/KategoriController.php`
- [Shopping cart](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/user/KeranjangController.php): `app/Http/Controllers/user/KeranjangController.php`
- [Customer address](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/user/AlamatController.php): `app/Http/Controllers/user/AlamatController.php`
- [Cart records](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Keranjang.php): `app/Keranjang.php`
- [Product records](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Product.php): `app/Product.php`
- [Category records](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Categories.php): `app/Categories.php`
- [Address records](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Alamat.php): `app/Alamat.php`
- [Storefront views](https://github.com/fikrisuheri/laravel-toko-online/blob/master/resources/views/user/app.blade.php): `resources/views/user/app.blade.php`

### Order lifecycle

- [Checkout](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/user/CheckoutController.php): `app/Http/Controllers/user/CheckoutController.php`
- [Customer orders](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/user/OrderController.php): `app/Http/Controllers/user/OrderController.php`
- [Order records](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Order.php): `app/Order.php`
- [Order lines](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Detailorder.php): `app/Detailorder.php`
- [Order views](https://github.com/fikrisuheri/laravel-toko-online/blob/master/resources/views/user/order/order.blade.php): `resources/views/user/order/order.blade.php`

### Administration

- [Order operations](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/admin/TransaksiController.php): `app/Http/Controllers/admin/TransaksiController.php`
- [Sales dashboard](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`
- [Product management](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/admin/ProductController.php): `app/Http/Controllers/admin/ProductController.php`
- [Category management](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/admin/CategoriesController.php): `app/Http/Controllers/admin/CategoriesController.php`
- [Customer management](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/admin/PelangganController.php): `app/Http/Controllers/admin/PelangganController.php`
- [Store settings](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/admin/PengaturanController.php): `app/Http/Controllers/admin/PengaturanController.php`
- [Bank accounts](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Http/Controllers/admin/RekeningController.php): `app/Http/Controllers/admin/RekeningController.php`
- [Bank records](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Rekening.php): `app/Rekening.php`
- [Admin views](https://github.com/fikrisuheri/laravel-toko-online/blob/master/resources/views/admin/layout/app.blade.php): `resources/views/admin/layout/app.blade.php`

### Application core

- [Web routing](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Providers/RouteServiceProvider.php): `app/Providers/RouteServiceProvider.php`
- [User records](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/User.php): `app/User.php`
- [HTTP application](https://github.com/fikrisuheri/laravel-toko-online/blob/master/public/index.php): `public/index.php`
- [App bootstrap](https://github.com/fikrisuheri/laravel-toko-online/blob/master/bootstrap/app.php): `bootstrap/app.php`
- [Authorization setup](https://github.com/fikrisuheri/laravel-toko-online/blob/master/app/Providers/AuthServiceProvider.php): `app/Providers/AuthServiceProvider.php`

### Other components

- **Customer**
- **RajaOngkir API**

## Connections

- Customer → Web routing: sends requests
- Web routing → Product catalog: routes requests
- Web routing → Shopping cart: routes requests
- Web routing → Customer address: routes requests
- Web routing → Checkout: routes requests
- Web routing → Customer orders: routes requests
- Web routing → Order operations: routes requests
- HTTP application → App bootstrap: loads (evidence: `public/index.php`)
- App bootstrap → Web routing: registers routes
- Web routing → App bootstrap: maps route files (evidence: `app/Providers/RouteServiceProvider.php`)
- Customer orders → Order records: creates and reads (evidence: `app/Http/Controllers/user/OrderController.php`)
- Customer orders → Order lines: creates and reads (evidence: `app/Http/Controllers/user/OrderController.php`)
- Customer orders → Cart records: reads and clears (evidence: `app/Http/Controllers/user/OrderController.php`)
- Customer orders → Bank records: loads accounts (evidence: `app/Http/Controllers/user/OrderController.php`)
- Customer orders → Order views: renders (evidence: `app/Http/Controllers/user/OrderController.php`)
- Order operations → Order records: updates status (evidence: `app/Http/Controllers/admin/TransaksiController.php`)
- Order operations → Order lines: reads order lines (evidence: `app/Http/Controllers/admin/TransaksiController.php`)
- Order operations → Product records: decrements stock (evidence: `app/Http/Controllers/admin/TransaksiController.php`)
- Order operations → Admin views: renders
- Sales dashboard → Order records: reads metrics (evidence: `app/Http/Controllers/DashboardController.php`)
- Sales dashboard → User records: counts customers (evidence: `app/Http/Controllers/DashboardController.php`)
- Product management → Product records: manages products (evidence: `app/Http/Controllers/admin/ProductController.php`)
- Product management → Category records: loads categories (evidence: `app/Http/Controllers/admin/ProductController.php`)
- RajaOngkir API → Checkout: shipping estimates
- RajaOngkir API → RajaOngkir API
