# proeungchiso/setec-y3s2-sa-final-project architecture

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

- Interactive diagram: https://gitdiagram.com/proeungchiso/setec-y3s2-sa-final-project
- Repository: https://github.com/proeungchiso/setec-y3s2-sa-final-project

## Overview

This is a Laravel-based blogging and user-profile application, rather than the Laravel framework itself. Its visible workflow routes web requests to authentication, blog, profile, image, and feedback controllers; controllers perform domain operations through Eloquent models and return responses. The sampled blog controller also selects views for listing, detail, editing, profile, and landing-page content. The source index supports the route and model links, but several controllers and views were not excerpted, so their specific presentation links are omitted.

Main entry points: [`app/Http/Controllers/BlogController.php`](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Controllers/BlogController.php) (Blog operations), [`routes/web.php`](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/routes/web.php) (Web routes), [`app/Models/User.php`](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Models/User.php) (User and roles), [`app/Http/Controllers/AuthController.php`](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Controllers/AuthController.php) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Request handling"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_http_kernel["HTTP middleware<br/>[Kernel.php]"]
  node_app_bootstrap["Application bootstrap<br/>[app.php]"]
end

subgraph group_identity["Accounts and profiles"]
  node_auth_controller["Authentication<br/>[AuthController.php]"]
  node_user_controller["Profile management<br/>[UserController.php]"]
  node_user_model["User and roles<br/>[User.php]"]
  node_role_model["Role<br/>[Role.php]"]
  node_profile_view["Profile page<br/>[index.blade.php]"]
end

subgraph group_publishing["Blog publishing"]
  node_blog_controller["Blog operations<br/>[BlogController.php]"]
  node_blog_model["Blog records<br/>[Blog.php]"]
  node_blog_views["Blog pages<br/>[index.blade.php]"]
  node_blog_detail_view["Blog detail<br/>[index.blade.php]"]
  node_blog_edit_view["Blog editor<br/>[index.blade.php]"]
  node_home_view["Landing page<br/>[index.blade.php]"]
end

subgraph group_content["Supporting content"]
  node_image_controller["Image handling"]
  node_image_model["Image records<br/>[Image.php]"]
  node_feedback_controller["Feedback handling"]
  node_feedback_model["Feedback records<br/>[Feedback.php]"]
end

node_visitor(("Visitor"))
node_database[("Application database")]

node_visitor -->|"sends request"| node_web_routes
node_app_bootstrap -->|"binds kernel"| node_http_kernel
node_web_routes -->|"dispatches"| node_auth_controller
node_web_routes -->|"dispatches"| node_blog_controller
node_web_routes -->|"dispatches"| node_user_controller
node_web_routes -->|"dispatches"| node_image_controller
node_web_routes -->|"dispatches"| node_feedback_controller
node_auth_controller -->|"authenticates users"| node_user_model
node_user_controller -->|"updates profile"| node_user_model
node_user_model -->|"belongs to"| node_role_model
node_blog_controller -->|"queries and saves"| node_blog_model
node_blog_controller -->|"counts users"| node_user_model
node_blog_controller -->|"renders listing"| node_blog_views
node_blog_controller -->|"renders detail"| node_blog_detail_view
node_blog_controller -->|"renders editor"| node_blog_edit_view
node_blog_controller -->|"renders profile"| node_profile_view
node_blog_controller -->|"renders landing"| node_home_view
node_image_controller -->|"uses records"| node_image_model
node_feedback_controller -->|"uses records"| node_feedback_model
node_user_model -.->|"persists data"| node_database
node_role_model -.->|"persists data"| node_database
node_blog_model -.->|"persists data"| node_database
node_image_model -.->|"persists data"| node_database
node_feedback_model -.->|"persists data"| node_database

click node_web_routes "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/routes/web.php"
click node_http_kernel "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Kernel.php"
click node_app_bootstrap "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/bootstrap/app.php"
click node_auth_controller "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Controllers/AuthController.php"
click node_user_controller "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Controllers/UserController.php"
click node_user_model "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Models/User.php"
click node_role_model "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Models/Role.php"
click node_blog_controller "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Controllers/BlogController.php"
click node_blog_model "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Models/Blog.php"
click node_blog_views "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/resources/views/user/blog/index.blade.php"
click node_blog_detail_view "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/resources/views/user/blog-detail/index.blade.php"
click node_blog_edit_view "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/resources/views/user/blog-edit/index.blade.php"
click node_profile_view "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/resources/views/user/profile/index.blade.php"
click node_home_view "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/resources/views/index.blade.php"
click node_image_controller "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Controllers/ImageController.php"
click node_image_model "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Models/Image.php"
click node_feedback_controller "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Controllers/FeedbackController.php"
click node_feedback_model "https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Models/Feedback.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_web_routes,node_http_kernel,node_app_bootstrap toneBlue
class node_auth_controller,node_user_controller,node_user_model,node_role_model,node_profile_view,node_database toneAmber
class node_blog_controller,node_blog_model,node_blog_views,node_blog_detail_view,node_blog_edit_view,node_home_view toneMint
class node_image_controller,node_image_model,node_feedback_controller,node_feedback_model toneRose
class node_visitor toneIndigo
```

## Components

### Request handling

- [Web routes](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/routes/web.php): `routes/web.php`
- [HTTP middleware](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Kernel.php): `app/Http/Kernel.php`
- [Application bootstrap](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/bootstrap/app.php): `bootstrap/app.php`

### Accounts and profiles

- [Authentication](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Controllers/AuthController.php): `app/Http/Controllers/AuthController.php`
- [Profile management](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Controllers/UserController.php): `app/Http/Controllers/UserController.php`
- [User and roles](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Models/User.php): `app/Models/User.php`
- [Role](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Models/Role.php): `app/Models/Role.php`
- [Profile page](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/resources/views/user/profile/index.blade.php): `resources/views/user/profile/index.blade.php`

### Blog publishing

- [Blog operations](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Controllers/BlogController.php): `app/Http/Controllers/BlogController.php`
- [Blog records](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Models/Blog.php): `app/Models/Blog.php`
- [Blog pages](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/resources/views/user/blog/index.blade.php): `resources/views/user/blog/index.blade.php`
- [Blog detail](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/resources/views/user/blog-detail/index.blade.php): `resources/views/user/blog-detail/index.blade.php`
- [Blog editor](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/resources/views/user/blog-edit/index.blade.php): `resources/views/user/blog-edit/index.blade.php`
- [Landing page](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/resources/views/index.blade.php): `resources/views/index.blade.php`

### Supporting content

- [Image handling](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Controllers/ImageController.php): `app/Http/Controllers/ImageController.php`
- [Image records](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Models/Image.php): `app/Models/Image.php`
- [Feedback handling](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Http/Controllers/FeedbackController.php): `app/Http/Controllers/FeedbackController.php`
- [Feedback records](https://github.com/proeungchiso/setec-y3s2-sa-final-project/blob/main/app/Models/Feedback.php): `app/Models/Feedback.php`

### Other components

- **Visitor**
- **Application database**

## Connections

- Visitor → Web routes: sends request (evidence: `routes/web.php`)
- Application bootstrap → HTTP middleware: binds kernel (evidence: `bootstrap/app.php`)
- Web routes → Authentication: dispatches (evidence: `routes/web.php`)
- Web routes → Blog operations: dispatches (evidence: `routes/web.php`)
- Web routes → Profile management: dispatches (evidence: `routes/web.php`)
- Web routes → Image handling: dispatches (evidence: `routes/web.php`)
- Web routes → Feedback handling: dispatches (evidence: `routes/web.php`)
- Authentication → User and roles: authenticates users (evidence: `app/Http/Controllers/AuthController.php`)
- Profile management → User and roles: updates profile (evidence: `app/Http/Controllers/UserController.php`)
- User and roles → Role: belongs to (evidence: `app/Models/User.php`)
- Blog operations → Blog records: queries and saves (evidence: `app/Http/Controllers/BlogController.php`)
- Blog operations → User and roles: counts users (evidence: `app/Http/Controllers/BlogController.php`)
- Blog operations → Blog pages: renders listing (evidence: `app/Http/Controllers/BlogController.php`)
- Blog operations → Blog detail: renders detail (evidence: `app/Http/Controllers/BlogController.php`)
- Blog operations → Blog editor: renders editor (evidence: `app/Http/Controllers/BlogController.php`)
- Blog operations → Profile page: renders profile (evidence: `app/Http/Controllers/BlogController.php`)
- Blog operations → Landing page: renders landing (evidence: `app/Http/Controllers/BlogController.php`)
- Image handling → Image records: uses records (evidence: `app/Http/Controllers/ImageController.php`)
- Feedback handling → Feedback records: uses records (evidence: `app/Http/Controllers/FeedbackController.php`)
- User and roles → Application database: persists data
- Role → Application database: persists data
- Blog records → Application database: persists data
- Image records → Application database: persists data
- Feedback records → Application database: persists data
