# filamentphp/demo architecture

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

- Interactive diagram: https://gitdiagram.com/filamentphp/demo
- Repository: https://github.com/filamentphp/demo

## Overview

Filament Demo is a multi-module admin application for exploring realistic shop, blog, and HR workflows. An administrator signs in, uses the relevant Filament resource or dashboard to manage domain records, and reviews operational summaries. Shop includes order, catalog, and customer administration; the blog covers content and related comments; HR covers workforce, projects, tasks, time, leave, and expenses. The graph groups the resource interfaces and their domain models; the order resource’s model and page wiring are visible in source, while several other module links are documented in the README rather than sampled code.

Main entry points: [`app/Providers/Filament/AdminPanelProvider.php`](https://github.com/filamentphp/demo/blob/5.x/app/Providers/Filament/AdminPanelProvider.php) (Filament admin panel), [`app/Models/HR`](https://github.com/filamentphp/demo/tree/5.x/app/Models/HR) (HR records), [`app/Filament/Resources/Shop`](https://github.com/filamentphp/demo/tree/5.x/app/Filament/Resources/Shop) (Shop resources), [`app/Filament/Resources/Blog`](https://github.com/filamentphp/demo/tree/5.x/app/Filament/Resources/Blog) (Blog resources)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Admin experience"]
  node_panel["Filament admin panel"]
  node_features["Filament patterns overview"]
end

subgraph group_shop["Shop"]
  node_shopdash["Shop dashboard<br/>[ShopDashboard.php]"]
  node_shopui["Shop resources"]
  node_orderresource["Order resource<br/>[OrderResource.php]"]
end

subgraph group_blog["Blog"]
  node_blogui["Blog resources"]
end

subgraph group_hr["Human resources"]
  node_hrdash["HR dashboard<br/>[HrDashboard.php]"]
  node_hrpeople["People and leave"]
  node_hrprojects["Projects and tasks"]
  node_hrtime["Timesheets"]
  node_hrexpenses["Expenses"]
end

subgraph group_domain["Domain data"]
  node_shopdata[("Shop records")]
  node_blogdata[("Blog records")]
  node_hrdata[("HR records")]
end

node_admin(("Administrator"))

node_admin -->|"signs in"| node_panel
node_panel -.->|"administers"| node_shopui
node_panel -.->|"administers"| node_blogui
node_panel -.->|"administers"| node_hrpeople
node_panel -.->|"administers"| node_hrprojects
node_panel -.->|"administers"| node_hrtime
node_panel -.->|"administers"| node_hrexpenses
node_panel -.->|"opens"| node_shopdash
node_panel -.->|"opens"| node_hrdash
node_orderresource -->|"uses model"| node_shopdata
node_shopui -.->|"manages records"| node_shopdata
node_blogui -.->|"manages records"| node_blogdata
node_hrpeople -.->|"manages records"| node_hrdata
node_hrprojects -.->|"manages records"| node_hrdata
node_hrtime -.->|"manages records"| node_hrdata
node_hrexpenses -.->|"manages records"| node_hrdata
node_panel -.->|"presents examples"| node_features

click node_panel "https://github.com/filamentphp/demo/blob/5.x/app/Providers/Filament/AdminPanelProvider.php"
click node_shopdash "https://github.com/filamentphp/demo/blob/5.x/app/Filament/Pages/ShopDashboard.php"
click node_shopui "https://github.com/filamentphp/demo/tree/5.x/app/Filament/Resources/Shop"
click node_orderresource "https://github.com/filamentphp/demo/blob/5.x/app/Filament/Resources/Shop/Orders/OrderResource.php"
click node_shopdata "https://github.com/filamentphp/demo/tree/5.x/app/Models/Shop"
click node_blogui "https://github.com/filamentphp/demo/tree/5.x/app/Filament/Resources/Blog"
click node_blogdata "https://github.com/filamentphp/demo/tree/5.x/app/Models/Blog"
click node_hrdash "https://github.com/filamentphp/demo/blob/5.x/app/Filament/Pages/HrDashboard.php"
click node_hrpeople "https://github.com/filamentphp/demo/blob/5.x/app/Filament/Resources/HR/Employees/EmployeeResource.php"
click node_hrprojects "https://github.com/filamentphp/demo/blob/5.x/app/Filament/Resources/HR/Projects/ProjectResource.php"
click node_hrtime "https://github.com/filamentphp/demo/blob/5.x/app/Filament/Resources/HR/Timesheets/TimesheetResource.php"
click node_hrexpenses "https://github.com/filamentphp/demo/blob/5.x/app/Filament/Resources/HR/Expenses/ExpenseResource.php"
click node_hrdata "https://github.com/filamentphp/demo/tree/5.x/app/Models/HR"
click node_features "https://github.com/filamentphp/demo/blob/5.x/app/Filament/Widgets/FeaturesOverview.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_panel,node_features toneBlue
class node_shopdash,node_shopui,node_orderresource toneAmber
class node_blogui toneMint
class node_hrdash,node_hrpeople,node_hrprojects,node_hrtime,node_hrexpenses toneRose
class node_shopdata,node_blogdata,node_hrdata,node_admin toneIndigo
```

## Components

### Admin experience

- [Filament admin panel](https://github.com/filamentphp/demo/blob/5.x/app/Providers/Filament/AdminPanelProvider.php): `app/Providers/Filament/AdminPanelProvider.php`
- [Filament patterns overview](https://github.com/filamentphp/demo/blob/5.x/app/Filament/Widgets/FeaturesOverview.php): `app/Filament/Widgets/FeaturesOverview.php`

### Shop

- [Shop dashboard](https://github.com/filamentphp/demo/blob/5.x/app/Filament/Pages/ShopDashboard.php): `app/Filament/Pages/ShopDashboard.php`
- [Shop resources](https://github.com/filamentphp/demo/tree/5.x/app/Filament/Resources/Shop): `app/Filament/Resources/Shop`
- [Order resource](https://github.com/filamentphp/demo/blob/5.x/app/Filament/Resources/Shop/Orders/OrderResource.php): `app/Filament/Resources/Shop/Orders/OrderResource.php`

### Blog

- [Blog resources](https://github.com/filamentphp/demo/tree/5.x/app/Filament/Resources/Blog): `app/Filament/Resources/Blog`

### Human resources

- [HR dashboard](https://github.com/filamentphp/demo/blob/5.x/app/Filament/Pages/HrDashboard.php): `app/Filament/Pages/HrDashboard.php`
- [People and leave](https://github.com/filamentphp/demo/blob/5.x/app/Filament/Resources/HR/Employees/EmployeeResource.php): `app/Filament/Resources/HR/Employees/EmployeeResource.php`
- [Projects and tasks](https://github.com/filamentphp/demo/blob/5.x/app/Filament/Resources/HR/Projects/ProjectResource.php): `app/Filament/Resources/HR/Projects/ProjectResource.php`
- [Timesheets](https://github.com/filamentphp/demo/blob/5.x/app/Filament/Resources/HR/Timesheets/TimesheetResource.php): `app/Filament/Resources/HR/Timesheets/TimesheetResource.php`
- [Expenses](https://github.com/filamentphp/demo/blob/5.x/app/Filament/Resources/HR/Expenses/ExpenseResource.php): `app/Filament/Resources/HR/Expenses/ExpenseResource.php`

### Domain data

- [Shop records](https://github.com/filamentphp/demo/tree/5.x/app/Models/Shop): `app/Models/Shop`
- [Blog records](https://github.com/filamentphp/demo/tree/5.x/app/Models/Blog): `app/Models/Blog`
- [HR records](https://github.com/filamentphp/demo/tree/5.x/app/Models/HR): `app/Models/HR`

### Other components

- **Administrator**

## Connections

- Administrator → Filament admin panel: signs in (evidence: `README.md`)
- Filament admin panel → Shop resources: administers (evidence: `README.md`)
- Filament admin panel → Blog resources: administers (evidence: `README.md`)
- Filament admin panel → People and leave: administers (evidence: `README.md`)
- Filament admin panel → Projects and tasks: administers (evidence: `README.md`)
- Filament admin panel → Timesheets: administers (evidence: `README.md`)
- Filament admin panel → Expenses: administers (evidence: `README.md`)
- Filament admin panel → Shop dashboard: opens (evidence: `README.md`)
- Filament admin panel → HR dashboard: opens (evidence: `README.md`)
- Order resource → Shop records: uses model (evidence: `app/Filament/Resources/Shop/Orders/OrderResource.php`)
- Shop resources → Shop records: manages records (evidence: `README.md`)
- Blog resources → Blog records: manages records (evidence: `README.md`)
- People and leave → HR records: manages records (evidence: `README.md`)
- Projects and tasks → HR records: manages records (evidence: `README.md`)
- Timesheets → HR records: manages records (evidence: `README.md`)
- Expenses → HR records: manages records (evidence: `README.md`)
- Filament admin panel → Filament patterns overview: presents examples (evidence: `README.md`)
