# chimsithy/laraveldeploy architecture

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

- Interactive diagram: https://gitdiagram.com/chimsithy/laraveldeploy
- Repository: https://github.com/chimsithy/laraveldeploy

## Overview

This is a Laravel web application with a small category-browsing feature and the standard account, authentication, and profile flows. A visitor reaches the application through its web routes; those routes dispatch to controllers, which validate requests, use models or the authenticated user, and render views or redirect. The graph includes the documented registration, login, and email-verification stages, plus category listing and profile maintenance. Several route targets referenced by the auth routes are absent from the supplied tree, so they are not mapped; edges are limited to visible route declarations and controller behavior.

Main entry points: [`routes/auth.php`](https://github.com/chimsithy/laraveldeploy/blob/master/routes/auth.php) (Auth routes), [`app/Http/Controllers/ProfileController.php`](https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/ProfileController.php) (Profile actions), [`routes/web.php`](https://github.com/chimsithy/laraveldeploy/blob/master/routes/web.php) (Web routes), [`app/Http/Controllers/Auth/AuthenticatedSessionController.php`](https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/Auth/AuthenticatedSessionController.php) (Login session)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_auth["Authentication"]
  node_auth_routes["Auth routes<br/>[auth.php]"]
  node_login["Login session"]
  node_login_request["Login validation<br/>[LoginRequest.php]"]
  node_registration["Registration"]
  node_email_prompt["Verification prompt"]
  node_email_notice["Verification notice"]
  node_email_verify["Verify email"]
  node_auth_views["Auth views<br/>[login.blade.php]"]
  node_user["User model<br/>[User.php]"]
end

subgraph group_profile["Profile"]
  node_profile_controller["Profile actions"]
  node_profile_request["Profile validation"]
  node_profile_views["Profile views<br/>[edit.blade.php]"]
end

subgraph group_categories["Categories"]
  node_category_controller["Category listing"]
  node_category_model["Category model<br/>[Category.php]"]
  node_category_view["Category page<br/>[index.blade.php]"]
end

subgraph group_runtime["Web runtime"]
  node_entry["HTTP entry<br/>[index.php]"]
  node_bootstrap["App bootstrap<br/>[app.php]"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_admin_middleware["Admin middleware"]
end

node_visitor(("Visitor"))

node_visitor -->|"sends request"| node_entry
node_entry -->|"starts app"| node_bootstrap
node_bootstrap -->|"loads routes"| node_web_routes
node_web_routes -->|"includes routes"| node_auth_routes
node_auth_routes -->|"dispatches login"| node_login
node_auth_routes -->|"dispatches signup"| node_registration
node_auth_routes -->|"dispatches prompt"| node_email_prompt
node_auth_routes -->|"dispatches notice"| node_email_notice
node_auth_routes -->|"dispatches verification"| node_email_verify
node_login -->|"authenticates via"| node_login_request
node_login -->|"renders login"| node_auth_views
node_registration -->|"creates user"| node_user
node_registration -->|"renders signup"| node_auth_views
node_email_verify -->|"marks verified"| node_user
node_web_routes -->|"dispatches profile"| node_profile_controller
node_profile_controller -->|"validates update"| node_profile_request
node_profile_controller -->|"renders edit"| node_profile_views
node_profile_controller -->|"updates account"| node_user
node_web_routes -->|"dispatches categories"| node_category_controller
node_category_controller -->|"queries categories"| node_category_model
node_category_controller -->|"renders listing"| node_category_view
node_bootstrap -->|"registers alias"| node_admin_middleware

click node_entry "https://github.com/chimsithy/laraveldeploy/blob/master/public/index.php"
click node_bootstrap "https://github.com/chimsithy/laraveldeploy/blob/master/bootstrap/app.php"
click node_web_routes "https://github.com/chimsithy/laraveldeploy/blob/master/routes/web.php"
click node_auth_routes "https://github.com/chimsithy/laraveldeploy/blob/master/routes/auth.php"
click node_login "https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_login_request "https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Requests/Auth/LoginRequest.php"
click node_registration "https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/Auth/RegisteredUserController.php"
click node_email_prompt "https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/Auth/EmailVerificationPromptController.php"
click node_email_notice "https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/Auth/EmailVerificationNotificationController.php"
click node_email_verify "https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/Auth/VerifyEmailController.php"
click node_auth_views "https://github.com/chimsithy/laraveldeploy/blob/master/resources/views/auth/login.blade.php"
click node_user "https://github.com/chimsithy/laraveldeploy/blob/master/app/Models/User.php"
click node_profile_controller "https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/ProfileController.php"
click node_profile_request "https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Requests/ProfileUpdateRequest.php"
click node_profile_views "https://github.com/chimsithy/laraveldeploy/blob/master/resources/views/profile/edit.blade.php"
click node_category_controller "https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/CategoryController.php"
click node_category_model "https://github.com/chimsithy/laraveldeploy/blob/master/app/Models/Category.php"
click node_category_view "https://github.com/chimsithy/laraveldeploy/blob/master/resources/views/categories/index.blade.php"
click node_admin_middleware "https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Middleware/AdminMiddleware.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_auth_routes,node_login,node_login_request,node_registration,node_email_prompt,node_email_notice,node_email_verify,node_auth_views,node_user toneBlue
class node_profile_controller,node_profile_request,node_profile_views toneAmber
class node_category_controller,node_category_model,node_category_view toneMint
class node_entry,node_bootstrap,node_web_routes,node_admin_middleware toneRose
class node_visitor toneIndigo
```

## Components

### Authentication

- [Auth routes](https://github.com/chimsithy/laraveldeploy/blob/master/routes/auth.php): `routes/auth.php`
- [Login session](https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- [Login validation](https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Requests/Auth/LoginRequest.php): `app/Http/Requests/Auth/LoginRequest.php`
- [Registration](https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/Auth/RegisteredUserController.php): `app/Http/Controllers/Auth/RegisteredUserController.php`
- [Verification prompt](https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/Auth/EmailVerificationPromptController.php): `app/Http/Controllers/Auth/EmailVerificationPromptController.php`
- [Verification notice](https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/Auth/EmailVerificationNotificationController.php): `app/Http/Controllers/Auth/EmailVerificationNotificationController.php`
- [Verify email](https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/Auth/VerifyEmailController.php): `app/Http/Controllers/Auth/VerifyEmailController.php`
- [Auth views](https://github.com/chimsithy/laraveldeploy/blob/master/resources/views/auth/login.blade.php): `resources/views/auth/login.blade.php`
- [User model](https://github.com/chimsithy/laraveldeploy/blob/master/app/Models/User.php): `app/Models/User.php`

### Profile

- [Profile actions](https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/ProfileController.php): `app/Http/Controllers/ProfileController.php`
- [Profile validation](https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Requests/ProfileUpdateRequest.php): `app/Http/Requests/ProfileUpdateRequest.php`
- [Profile views](https://github.com/chimsithy/laraveldeploy/blob/master/resources/views/profile/edit.blade.php): `resources/views/profile/edit.blade.php`

### Categories

- [Category listing](https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Controllers/CategoryController.php): `app/Http/Controllers/CategoryController.php`
- [Category model](https://github.com/chimsithy/laraveldeploy/blob/master/app/Models/Category.php): `app/Models/Category.php`
- [Category page](https://github.com/chimsithy/laraveldeploy/blob/master/resources/views/categories/index.blade.php): `resources/views/categories/index.blade.php`

### Web runtime

- [HTTP entry](https://github.com/chimsithy/laraveldeploy/blob/master/public/index.php): `public/index.php`
- [App bootstrap](https://github.com/chimsithy/laraveldeploy/blob/master/bootstrap/app.php): `bootstrap/app.php`
- [Web routes](https://github.com/chimsithy/laraveldeploy/blob/master/routes/web.php): `routes/web.php`
- [Admin middleware](https://github.com/chimsithy/laraveldeploy/blob/master/app/Http/Middleware/AdminMiddleware.php): `app/Http/Middleware/AdminMiddleware.php`

### Other components

- **Visitor**

## Connections

- Visitor → HTTP entry: sends request
- HTTP entry → App bootstrap: starts app (evidence: `public/index.php`)
- App bootstrap → Web routes: loads routes (evidence: `bootstrap/app.php`)
- Web routes → Auth routes: includes routes (evidence: `routes/web.php`)
- Auth routes → Login session: dispatches login (evidence: `routes/auth.php`)
- Auth routes → Registration: dispatches signup (evidence: `routes/auth.php`)
- Auth routes → Verification prompt: dispatches prompt (evidence: `routes/auth.php`)
- Auth routes → Verification notice: dispatches notice (evidence: `routes/auth.php`)
- Auth routes → Verify email: dispatches verification (evidence: `routes/auth.php`)
- Login session → Login validation: authenticates via (evidence: `app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- Login session → Auth views: renders login (evidence: `app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- Registration → User model: creates user (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Registration → Auth views: renders signup (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Verify email → User model: marks verified (evidence: `app/Http/Controllers/Auth/VerifyEmailController.php`)
- Web routes → Profile actions: dispatches profile (evidence: `routes/web.php`)
- Profile actions → Profile validation: validates update (evidence: `app/Http/Controllers/ProfileController.php`)
- Profile actions → Profile views: renders edit (evidence: `app/Http/Controllers/ProfileController.php`)
- Profile actions → User model: updates account (evidence: `app/Http/Controllers/ProfileController.php`)
- Web routes → Category listing: dispatches categories (evidence: `routes/web.php`)
- Category listing → Category model: queries categories (evidence: `app/Http/Controllers/CategoryController.php`)
- Category listing → Category page: renders listing (evidence: `app/Http/Controllers/CategoryController.php`)
- App bootstrap → Admin middleware: registers alias (evidence: `bootstrap/app.php`)
