# mohammadnizalmlna/jalan2kuy.id architecture

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

- Interactive diagram: https://gitdiagram.com/mohammadnizalmlna/jalan2kuy.id
- Repository: https://github.com/mohammadnizalmlna/jalan2kuy.id

## Overview

This is a Laravel destination and event information site with an administrator portal. Visitors browse destination categories, search and view destinations, and browse events and a gallery; administrators authenticate with a passkey, manage destination and event records, and maintain their account. The graph shows route dispatch and controller-to-model interactions where the supplied route declarations and source index support them. Several view and controller implementations were not sampled, so their internal links are omitted rather than inferred.

Main entry points: [`routes/web.php`](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/routes/web.php) (Web routes), [`app/Http/Controllers/DestCategoryController.php`](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Http/Controllers/DestCategoryController.php) (Category browsing), [`app/Http/Controllers/DestinationController.php`](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Http/Controllers/DestinationController.php) (Destination handling), [`app/Http/Controllers/AdminController.php`](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Http/Controllers/AdminController.php) (Admin accounts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Web entry"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_base_controller["Base controller<br/>[Controller.php]"]
  node_app_provider["App service provider"]
  node_app_bootstrap["Application setup<br/>[app.php]"]
  node_js_bootstrap["Browser bootstrap<br/>[bootstrap.js]"]
end

subgraph group_catalog["Destination catalog"]
  node_homepage["Homepage<br/>[homepage.blade.php]"]
  node_category_controller["Category browsing"]
  node_destination_controller["Destination handling"]
  node_destination_views["Destination pages"]
  node_destination_model[("Destination records<br/>[Destination.php]")]
  node_category_model[("Category records<br/>[DestCategory.php]")]
end

subgraph group_events["Events and gallery"]
  node_event_controller["Event handling"]
  node_event_views["Event pages"]
  node_event_model[("Event records<br/>[Event.php]")]
  node_gallery_views["Gallery pages<br/>[gallery.blade.php]"]
end

subgraph group_admin["Administration"]
  node_admin_controller["Admin accounts"]
  node_admin_model[("Admin records<br/>[Admin.php]")]
  node_admin_views["Admin pages"]
  node_user_model[("User model<br/>[User.php]")]
end

node_visitor(("Visitor"))

node_visitor -->|"requests pages"| node_web_routes
node_web_routes -->|"serves homepage"| node_homepage
node_web_routes -->|"dispatches browsing"| node_category_controller
node_web_routes -->|"dispatches destination"| node_destination_controller
node_web_routes -->|"dispatches events"| node_event_controller
node_web_routes -->|"dispatches account"| node_admin_controller
node_category_controller -->|"queries destinations"| node_destination_model
node_category_controller -->|"queries categories"| node_category_model
node_category_controller -->|"renders pages"| node_destination_views
node_destination_controller -->|"uses records"| node_destination_model
node_destination_controller -->|"queries related events"| node_event_model
node_destination_controller -->|"renders detail"| node_destination_views
node_event_controller -->|"queries records"| node_event_model
node_event_controller -->|"renders pages"| node_event_views
node_admin_controller -->|"reads account"| node_admin_model
node_admin_controller -->|"updates references"| node_destination_model
node_admin_controller -->|"updates references"| node_event_model

click node_web_routes "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/routes/web.php"
click node_homepage "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/resources/views/homepage.blade.php"
click node_category_controller "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Http/Controllers/DestCategoryController.php"
click node_destination_controller "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Http/Controllers/DestinationController.php"
click node_destination_views "https://github.com/mohammadnizalmlna/jalan2kuy.id/tree/master/resources/views/destination"
click node_destination_model "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Models/Destination.php"
click node_category_model "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Models/DestCategory.php"
click node_event_controller "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Http/Controllers/EventController.php"
click node_event_views "https://github.com/mohammadnizalmlna/jalan2kuy.id/tree/master/resources/views/event"
click node_event_model "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Models/Event.php"
click node_gallery_views "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/resources/views/gallery/gallery.blade.php"
click node_admin_controller "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Http/Controllers/AdminController.php"
click node_admin_model "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Models/Admin.php"
click node_admin_views "https://github.com/mohammadnizalmlna/jalan2kuy.id/tree/master/resources/views/admin"
click node_user_model "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Models/User.php"
click node_base_controller "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Http/Controllers/Controller.php"
click node_app_provider "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Providers/AppServiceProvider.php"
click node_app_bootstrap "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/bootstrap/app.php"
click node_js_bootstrap "https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/public/js/bootstrap.js"

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_web_routes,node_base_controller,node_app_provider,node_app_bootstrap,node_js_bootstrap toneBlue
class node_homepage,node_category_controller,node_destination_controller,node_destination_views,node_destination_model,node_category_model toneAmber
class node_event_controller,node_event_views,node_event_model,node_gallery_views toneMint
class node_admin_controller,node_admin_model,node_admin_views,node_user_model toneRose
class node_visitor toneIndigo
```

## Components

### Web entry

- [Web routes](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/routes/web.php): `routes/web.php`
- [Base controller](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Http/Controllers/Controller.php): `app/Http/Controllers/Controller.php`
- [App service provider](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Providers/AppServiceProvider.php): `app/Providers/AppServiceProvider.php`
- [Application setup](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/bootstrap/app.php): `bootstrap/app.php`
- [Browser bootstrap](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/public/js/bootstrap.js): `public/js/bootstrap.js`

### Destination catalog

- [Homepage](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/resources/views/homepage.blade.php): `resources/views/homepage.blade.php`
- [Category browsing](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Http/Controllers/DestCategoryController.php): `app/Http/Controllers/DestCategoryController.php`
- [Destination handling](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Http/Controllers/DestinationController.php): `app/Http/Controllers/DestinationController.php`
- [Destination pages](https://github.com/mohammadnizalmlna/jalan2kuy.id/tree/master/resources/views/destination): `resources/views/destination`
- [Destination records](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Models/Destination.php): `app/Models/Destination.php`
- [Category records](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Models/DestCategory.php): `app/Models/DestCategory.php`

### Events and gallery

- [Event handling](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Http/Controllers/EventController.php): `app/Http/Controllers/EventController.php`
- [Event pages](https://github.com/mohammadnizalmlna/jalan2kuy.id/tree/master/resources/views/event): `resources/views/event`
- [Event records](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Models/Event.php): `app/Models/Event.php`
- [Gallery pages](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/resources/views/gallery/gallery.blade.php): `resources/views/gallery/gallery.blade.php`

### Administration

- [Admin accounts](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Http/Controllers/AdminController.php): `app/Http/Controllers/AdminController.php`
- [Admin records](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Models/Admin.php): `app/Models/Admin.php`
- [Admin pages](https://github.com/mohammadnizalmlna/jalan2kuy.id/tree/master/resources/views/admin): `resources/views/admin`
- [User model](https://github.com/mohammadnizalmlna/jalan2kuy.id/blob/master/app/Models/User.php): `app/Models/User.php`

### Other components

- **Visitor**

## Connections

- Visitor → Web routes: requests pages (evidence: `routes/web.php`)
- Web routes → Homepage: serves homepage (evidence: `routes/web.php`)
- Web routes → Category browsing: dispatches browsing (evidence: `routes/web.php`)
- Web routes → Destination handling: dispatches destination (evidence: `routes/web.php`)
- Web routes → Event handling: dispatches events (evidence: `routes/web.php`)
- Web routes → Admin accounts: dispatches account (evidence: `routes/web.php`)
- Category browsing → Destination records: queries destinations (evidence: `app/Http/Controllers/DestCategoryController.php`)
- Category browsing → Category records: queries categories (evidence: `app/Http/Controllers/DestCategoryController.php`)
- Category browsing → Destination pages: renders pages (evidence: `app/Http/Controllers/DestCategoryController.php`)
- Destination handling → Destination records: uses records (evidence: `app/Http/Controllers/DestinationController.php`)
- Destination handling → Event records: queries related events (evidence: `app/Http/Controllers/DestinationController.php`)
- Destination handling → Destination pages: renders detail (evidence: `app/Http/Controllers/DestinationController.php`)
- Event handling → Event records: queries records (evidence: `app/Http/Controllers/EventController.php`)
- Event handling → Event pages: renders pages (evidence: `app/Http/Controllers/EventController.php`)
- Admin accounts → Admin records: reads account (evidence: `app/Http/Controllers/AdminController.php`)
- Admin accounts → Destination records: updates references (evidence: `app/Http/Controllers/AdminController.php`)
- Admin accounts → Event records: updates references (evidence: `app/Http/Controllers/AdminController.php`)
