# adriankiv/prokon architecture

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

- Interactive diagram: https://gitdiagram.com/adriankiv/prokon
- Repository: https://github.com/adriankiv/prokon

## Overview

This appears to be a Laravel application for school learning and laboratory administration: users choose classes and learning content, while inventory staff manage lab resources and practical schedules. The sampled material and inventory controllers show CRUD operations against Eloquent models, with uploaded files handled through Laravel storage. Route excerpts establish the web dispatch and access-control structure. Several subsystem controllers and views are unsampled, so their internal behavior and some presentation links are not expanded.

Main entry points: [`routes/web.php`](https://github.com/adriankiv/prokon/blob/main/routes/web.php) (Web routes), [`app/Http/Controllers/InventarisasiController.php`](https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/InventarisasiController.php) (Inventory overview), [`app/Http/Controllers/AuthController.php`](https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/AuthController.php) (Authentication), [`app/Http/Controllers/MateriController.php`](https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/MateriController.php) (Learning materials)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web access"]
  node_routes["Web routes<br/>[web.php]"]
  node_auth["Authentication<br/>[AuthController.php]"]
end

subgraph group_learning["Learning content"]
  node_class["Class selection"]
  node_material["Learning materials"]
end

subgraph group_inventory["Laboratory operations"]
  node_overview["Inventory overview"]
  node_tools["Tool inventory"]
  node_materials["Chemical inventory"]
  node_facilities["Facility inventory"]
  node_staff["Lab staff"]
  node_schedule["Practical schedule"]
end

subgraph group_data["Domain records"]
  node_material_record["Material records<br/>[Materi.php]"]
  node_admin_record["Administrator records<br/>[Admin.php]"]
  node_student_record["Student records<br/>[Siswa.php]"]
  node_file_storage[("Uploaded files")]
  node_tool_record["Tool records"]
  node_chemical_record["Chemical records"]
  node_facility_record["Facility records"]
  node_staff_record["Staff records"]
  node_schedule_record["Schedule records"]
end

node_user(("School user"))

node_user -->|"requests pages"| node_routes
node_routes -->|"dispatches auth"| node_auth
node_routes -->|"dispatches selection"| node_class
node_routes -->|"dispatches content"| node_material
node_routes -->|"dispatches dashboard"| node_overview
node_routes -->|"dispatches tools"| node_tools
node_routes -->|"dispatches chemicals"| node_materials
node_routes -->|"dispatches facilities"| node_facilities
node_routes -->|"dispatches staff"| node_staff
node_routes -->|"dispatches schedules"| node_schedule
node_auth -->|"queries"| node_admin_record
node_auth -->|"queries"| node_student_record
node_material -->|"reads and writes"| node_material_record
node_material -->|"stores uploads"| node_file_storage
node_overview -->|"queries"| node_tool_record
node_overview -->|"queries"| node_chemical_record
node_overview -->|"queries"| node_facility_record
node_overview -->|"queries"| node_staff_record
node_overview -->|"queries"| node_schedule_record
node_tools -->|"reads and writes"| node_tool_record
node_materials -->|"reads and writes"| node_chemical_record
node_materials -->|"stores uploads"| node_file_storage
node_facilities -->|"reads and writes"| node_facility_record
node_schedule -->|"reads and writes"| node_schedule_record
node_staff -->|"reads and writes"| node_staff_record

click node_routes "https://github.com/adriankiv/prokon/blob/main/routes/web.php"
click node_auth "https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/AuthController.php"
click node_class "https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/KelasController.php"
click node_material "https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/MateriController.php"
click node_material_record "https://github.com/adriankiv/prokon/blob/main/app/Models/Materi.php"
click node_admin_record "https://github.com/adriankiv/prokon/blob/main/app/Models/Admin.php"
click node_student_record "https://github.com/adriankiv/prokon/blob/main/app/Models/Siswa.php"
click node_overview "https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/InventarisasiController.php"
click node_tools "https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/InventarisasiAlatController.php"
click node_materials "https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/InventarisasiBahanController.php"
click node_facilities "https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/InventarisasiFasilitasController.php"
click node_staff "https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/TenagaLaboratoriumController.php"
click node_schedule "https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/JadwalPraktikumController.php"
click node_tool_record "https://github.com/adriankiv/prokon/blob/main/app/Models/InventarisasiAlat.php"
click node_chemical_record "https://github.com/adriankiv/prokon/blob/main/app/Models/InventarisasiBahan.php"
click node_facility_record "https://github.com/adriankiv/prokon/blob/main/app/Models/InventarisasiFasilitas.php"
click node_staff_record "https://github.com/adriankiv/prokon/blob/main/app/Models/TenagaLaboratorium.php"
click node_schedule_record "https://github.com/adriankiv/prokon/blob/main/app/Models/JadwalPraktikum.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_routes,node_auth,node_user toneBlue
class node_class,node_material toneAmber
class node_overview,node_tools,node_materials,node_facilities,node_staff,node_schedule toneMint
class node_material_record,node_admin_record,node_student_record,node_file_storage,node_tool_record,node_chemical_record,node_facility_record,node_staff_record,node_schedule_record toneRose
```

## Components

### Web access

- [Web routes](https://github.com/adriankiv/prokon/blob/main/routes/web.php): `routes/web.php`
- [Authentication](https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/AuthController.php): `app/Http/Controllers/AuthController.php`

### Learning content

- [Class selection](https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/KelasController.php): `app/Http/Controllers/KelasController.php`
- [Learning materials](https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/MateriController.php): `app/Http/Controllers/MateriController.php`

### Laboratory operations

- [Inventory overview](https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/InventarisasiController.php): `app/Http/Controllers/InventarisasiController.php`
- [Tool inventory](https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/InventarisasiAlatController.php): `app/Http/Controllers/InventarisasiAlatController.php`
- [Chemical inventory](https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/InventarisasiBahanController.php): `app/Http/Controllers/InventarisasiBahanController.php`
- [Facility inventory](https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/InventarisasiFasilitasController.php): `app/Http/Controllers/InventarisasiFasilitasController.php`
- [Lab staff](https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/TenagaLaboratoriumController.php): `app/Http/Controllers/TenagaLaboratoriumController.php`
- [Practical schedule](https://github.com/adriankiv/prokon/blob/main/app/Http/Controllers/JadwalPraktikumController.php): `app/Http/Controllers/JadwalPraktikumController.php`

### Domain records

- [Material records](https://github.com/adriankiv/prokon/blob/main/app/Models/Materi.php): `app/Models/Materi.php`
- [Administrator records](https://github.com/adriankiv/prokon/blob/main/app/Models/Admin.php): `app/Models/Admin.php`
- [Student records](https://github.com/adriankiv/prokon/blob/main/app/Models/Siswa.php): `app/Models/Siswa.php`
- **Uploaded files**
- [Tool records](https://github.com/adriankiv/prokon/blob/main/app/Models/InventarisasiAlat.php): `app/Models/InventarisasiAlat.php`
- [Chemical records](https://github.com/adriankiv/prokon/blob/main/app/Models/InventarisasiBahan.php): `app/Models/InventarisasiBahan.php`
- [Facility records](https://github.com/adriankiv/prokon/blob/main/app/Models/InventarisasiFasilitas.php): `app/Models/InventarisasiFasilitas.php`
- [Staff records](https://github.com/adriankiv/prokon/blob/main/app/Models/TenagaLaboratorium.php): `app/Models/TenagaLaboratorium.php`
- [Schedule records](https://github.com/adriankiv/prokon/blob/main/app/Models/JadwalPraktikum.php): `app/Models/JadwalPraktikum.php`

### Other components

- **School user**

## Connections

- School user → Web routes: requests pages (evidence: `routes/web.php`)
- Web routes → Authentication: dispatches auth (evidence: `routes/web.php`)
- Web routes → Class selection: dispatches selection (evidence: `routes/web.php`)
- Web routes → Learning materials: dispatches content (evidence: `routes/web.php`)
- Web routes → Inventory overview: dispatches dashboard (evidence: `routes/web.php`)
- Web routes → Tool inventory: dispatches tools (evidence: `routes/web.php`)
- Web routes → Chemical inventory: dispatches chemicals (evidence: `routes/web.php`)
- Web routes → Facility inventory: dispatches facilities (evidence: `routes/web.php`)
- Web routes → Lab staff: dispatches staff (evidence: `routes/web.php`)
- Web routes → Practical schedule: dispatches schedules (evidence: `routes/web.php`)
- Authentication → Administrator records: queries (evidence: `app/Http/Controllers/AuthController.php`)
- Authentication → Student records: queries (evidence: `app/Http/Controllers/AuthController.php`)
- Learning materials → Material records: reads and writes (evidence: `app/Http/Controllers/MateriController.php`)
- Learning materials → Uploaded files: stores uploads (evidence: `app/Http/Controllers/MateriController.php`)
- Inventory overview → Tool records: queries (evidence: `app/Http/Controllers/InventarisasiController.php`)
- Inventory overview → Chemical records: queries (evidence: `app/Http/Controllers/InventarisasiController.php`)
- Inventory overview → Facility records: queries (evidence: `app/Http/Controllers/InventarisasiController.php`)
- Inventory overview → Staff records: queries (evidence: `app/Http/Controllers/InventarisasiController.php`)
- Inventory overview → Schedule records: queries (evidence: `app/Http/Controllers/InventarisasiController.php`)
- Tool inventory → Tool records: reads and writes (evidence: `app/Http/Controllers/InventarisasiAlatController.php`)
- Chemical inventory → Chemical records: reads and writes (evidence: `app/Http/Controllers/InventarisasiBahanController.php`)
- Chemical inventory → Uploaded files: stores uploads (evidence: `app/Http/Controllers/InventarisasiBahanController.php`)
- Facility inventory → Facility records: reads and writes (evidence: `app/Http/Controllers/InventarisasiFasilitasController.php`)
- Practical schedule → Schedule records: reads and writes (evidence: `app/Http/Controllers/JadwalPraktikumController.php`)
- Lab staff → Staff records: reads and writes (evidence: `app/Http/Controllers/TenagaLaboratoriumController.php`)
