# ggcs-star/jagodsuserapi architecture

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

- Interactive diagram: https://gitdiagram.com/ggcs-star/jagodsuserapi
- Repository: https://github.com/ggcs-star/jagodsuserapi

## Overview

This is a Laravel 10 application skeleton, not a standalone business product: its main workflow accepts an HTTP request, boots the application, routes the request through the HTTP kernel, and dispatches it to web or API routes. The tree also exposes authentication, user-model, broadcasting, and console entry points, but sampled files do not establish application-specific behavior for them. Framework-wide capabilities in the README are not treated as implemented product flows here.

Main entry points: [`app/Http/Kernel.php`](https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Http/Kernel.php) (HTTP kernel), [`app/Providers/RouteServiceProvider.php`](https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Providers/RouteServiceProvider.php) (Route provider), [`public/index.php`](https://github.com/ggcs-star/jagodsuserapi/blob/main/public/index.php) (HTTP entry point), [`bootstrap/app.php`](https://github.com/ggcs-star/jagodsuserapi/blob/main/bootstrap/app.php) (Application bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_http["HTTP runtime"]
  node_front["HTTP entry point<br/>[index.php]"]
  node_bootstrap["Application bootstrap<br/>[app.php]"]
  node_httpkernel["HTTP kernel<br/>[Kernel.php]"]
  node_controllerbase["Controller base<br/>[Controller.php]"]
  node_consolekernel["Console kernel<br/>[Kernel.php]"]
end

subgraph group_routes["Route surfaces"]
  node_routeprovider["Route provider"]
  node_webroutes["Web routes<br/>[web.php]"]
  node_apiroutes["API routes<br/>[api.php]"]
  node_channelroutes["Channel routes<br/>[channels.php]"]
end

subgraph group_identity["Identity and events"]
  node_authmiddleware["Authentication middleware<br/>[Authenticate.php]"]
  node_user["User model<br/>[User.php]"]
  node_authprovider["Auth provider"]
  node_broadcastprovider["Broadcast provider"]
end

subgraph group_configuration["Runtime configuration"]
  node_appconfig["Application settings<br/>[app.php]"]
  node_authconfig["Auth settings<br/>[auth.php]"]
  node_broadcastconfig["Broadcast settings<br/>[broadcasting.php]"]
  node_dbconfig["Database settings<br/>[database.php]"]
end

node_browser(("Browser client"))

node_browser -->|"sends request"| node_front
node_front -->|"loads application"| node_bootstrap
node_front -->|"handles request"| node_httpkernel
node_bootstrap -->|"binds kernel"| node_httpkernel
node_bootstrap -->|"binds kernel"| node_consolekernel
node_httpkernel -->|"uses routing"| node_routeprovider
node_routeprovider -->|"loads web routes"| node_webroutes
node_routeprovider -->|"loads API routes"| node_apiroutes
node_httpkernel -->|"runs middleware"| node_authmiddleware
node_authprovider -->|"maps identity"| node_user
node_appconfig -->|"registers provider"| node_authprovider
node_appconfig -->|"registers provider"| node_routeprovider
node_broadcastprovider -.->|"loads channels"| node_channelroutes
node_broadcastconfig -.->|"configures broadcasting"| node_broadcastprovider

click node_front "https://github.com/ggcs-star/jagodsuserapi/blob/main/public/index.php"
click node_bootstrap "https://github.com/ggcs-star/jagodsuserapi/blob/main/bootstrap/app.php"
click node_httpkernel "https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Http/Kernel.php"
click node_controllerbase "https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Http/Controllers/Controller.php"
click node_routeprovider "https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Providers/RouteServiceProvider.php"
click node_webroutes "https://github.com/ggcs-star/jagodsuserapi/blob/main/routes/web.php"
click node_apiroutes "https://github.com/ggcs-star/jagodsuserapi/blob/main/routes/api.php"
click node_channelroutes "https://github.com/ggcs-star/jagodsuserapi/blob/main/routes/channels.php"
click node_consolekernel "https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Console/Kernel.php"
click node_authmiddleware "https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Http/Middleware/Authenticate.php"
click node_user "https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Models/User.php"
click node_authprovider "https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Providers/AuthServiceProvider.php"
click node_broadcastprovider "https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Providers/BroadcastServiceProvider.php"
click node_appconfig "https://github.com/ggcs-star/jagodsuserapi/blob/main/config/app.php"
click node_authconfig "https://github.com/ggcs-star/jagodsuserapi/blob/main/config/auth.php"
click node_broadcastconfig "https://github.com/ggcs-star/jagodsuserapi/blob/main/config/broadcasting.php"
click node_dbconfig "https://github.com/ggcs-star/jagodsuserapi/blob/main/config/database.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_front,node_bootstrap,node_httpkernel,node_controllerbase,node_consolekernel,node_browser toneBlue
class node_routeprovider,node_webroutes,node_apiroutes,node_channelroutes toneAmber
class node_authmiddleware,node_user,node_authprovider,node_broadcastprovider toneMint
class node_appconfig,node_authconfig,node_broadcastconfig,node_dbconfig toneRose
```

## Components

### HTTP runtime

- [HTTP entry point](https://github.com/ggcs-star/jagodsuserapi/blob/main/public/index.php): `public/index.php`
- [Application bootstrap](https://github.com/ggcs-star/jagodsuserapi/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [HTTP kernel](https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Http/Kernel.php): `app/Http/Kernel.php`
- [Controller base](https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Http/Controllers/Controller.php): `app/Http/Controllers/Controller.php`
- [Console kernel](https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Console/Kernel.php): `app/Console/Kernel.php`

### Route surfaces

- [Route provider](https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Providers/RouteServiceProvider.php): `app/Providers/RouteServiceProvider.php`
- [Web routes](https://github.com/ggcs-star/jagodsuserapi/blob/main/routes/web.php): `routes/web.php`
- [API routes](https://github.com/ggcs-star/jagodsuserapi/blob/main/routes/api.php): `routes/api.php`
- [Channel routes](https://github.com/ggcs-star/jagodsuserapi/blob/main/routes/channels.php): `routes/channels.php`

### Identity and events

- [Authentication middleware](https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Http/Middleware/Authenticate.php): `app/Http/Middleware/Authenticate.php`
- [User model](https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Models/User.php): `app/Models/User.php`
- [Auth provider](https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Providers/AuthServiceProvider.php): `app/Providers/AuthServiceProvider.php`
- [Broadcast provider](https://github.com/ggcs-star/jagodsuserapi/blob/main/app/Providers/BroadcastServiceProvider.php): `app/Providers/BroadcastServiceProvider.php`

### Runtime configuration

- [Application settings](https://github.com/ggcs-star/jagodsuserapi/blob/main/config/app.php): `config/app.php`
- [Auth settings](https://github.com/ggcs-star/jagodsuserapi/blob/main/config/auth.php): `config/auth.php`
- [Broadcast settings](https://github.com/ggcs-star/jagodsuserapi/blob/main/config/broadcasting.php): `config/broadcasting.php`
- [Database settings](https://github.com/ggcs-star/jagodsuserapi/blob/main/config/database.php): `config/database.php`

### Other components

- **Browser client**

## Connections

- Browser client → HTTP entry point: sends request
- HTTP entry point → Application bootstrap: loads application
- HTTP entry point → HTTP kernel: handles request
- Application bootstrap → HTTP kernel: binds kernel
- Application bootstrap → Console kernel: binds kernel
- HTTP kernel → Route provider: uses routing
- Route provider → Web routes: loads web routes
- Route provider → API routes: loads API routes
- HTTP kernel → Authentication middleware: runs middleware
- Auth provider → User model: maps identity
- Application settings → Auth provider: registers provider
- Application settings → Route provider: registers provider
- Broadcast provider → Channel routes: loads channels
- Broadcast settings → Broadcast provider: configures broadcasting
