# phnaves/taskflow architecture

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

- Interactive diagram: https://gitdiagram.com/phnaves/taskflow
- Repository: https://github.com/phnaves/taskflow

## Overview

TaskFlow is a Laravel task-management web app. Users register or log in, then manage their own tasks: list and filter by priority, create, edit, complete, and delete. Requests enter through web routes and controllers, which delegate task operations to a service and persist through the user/task models; Blade views render the screens. The README also documents per-user isolation, status counts, and priority filtering. The graph follows shown route/controller/service calls; broader Laravel request and database runtime wiring is not expanded beyond the evidence provided.

Main entry points: [`app/Http/Controllers/TaskController.php`](https://github.com/phnaves/taskflow/blob/main/app/Http/Controllers/TaskController.php) (Task actions), [`app/Http/Controllers/Auth/AuthenticatedSessionController.php`](https://github.com/phnaves/taskflow/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php) (Login and logout), [`app/Http/Controllers/Auth/RegisteredUserController.php`](https://github.com/phnaves/taskflow/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php) (User registration), [`routes/web.php`](https://github.com/phnaves/taskflow/blob/main/routes/web.php) (Web routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_front["Laravel front controller<br/>[index.php]"]
  node_bootstrap["Application bootstrap<br/>[app.php]"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_auth_routes["Authentication routes<br/>[auth.php]"]
end

subgraph group_identity["User identity"]
  node_session_controller["Login and logout"]
  node_registration_controller["User registration"]
  node_login_validation["Login validation<br/>[LoginRequest.php]"]
  node_register_validation["Registration validation"]
  node_auth_service["Authentication service<br/>[AuthService.php]"]
  node_user_model["User account model<br/>[User.php]"]
end

subgraph group_tasks["Task management"]
  node_task_controller["Task actions<br/>[TaskController.php]"]
  node_task_validation["Task request validation"]
  node_task_update_validation["Update validation"]
  node_task_service["Task operations<br/>[TaskService.php]"]
  node_task_model["Task model<br/>[Task.php]"]
  node_database[("Configured database<br/>[database.php]")]
end

subgraph group_presentation["Web interface"]
  node_login_view["Login screen<br/>[login.blade.php]"]
  node_register_view["Registration screen<br/>[register.blade.php]"]
  node_task_list_view["Task list<br/>[index.blade.php]"]
  node_task_form_view["Task form<br/>[_form.blade.php]"]
  node_app_layout["Authenticated layout<br/>[app.blade.php]"]
  node_guest_layout["Guest layout<br/>[guest.blade.php]"]
end

node_browser(("User browser"))

node_browser -.->|"sends request"| node_front
node_front -->|"boots app"| node_bootstrap
node_bootstrap -->|"loads routes"| node_web_routes
node_web_routes -.->|"includes routes"| node_auth_routes
node_auth_routes -->|"routes to"| node_session_controller
node_auth_routes -->|"routes to"| node_registration_controller
node_web_routes -->|"routes to"| node_task_controller
node_session_controller -->|"accepts request"| node_login_validation
node_registration_controller -->|"accepts request"| node_register_validation
node_session_controller -->|"delegates auth"| node_auth_service
node_registration_controller -->|"delegates signup"| node_auth_service
node_auth_service -->|"creates user"| node_user_model
node_session_controller -.->|"renders"| node_login_view
node_registration_controller -.->|"renders"| node_register_view
node_task_controller -->|"accepts create"| node_task_validation
node_task_controller -->|"accepts update"| node_task_update_validation
node_task_controller -->|"delegates actions"| node_task_service
node_task_service -->|"queries owned tasks"| node_user_model
node_task_service -->|"filters and updates"| node_task_model
node_task_controller -.->|"renders list"| node_task_list_view
node_task_controller -.->|"renders form"| node_task_form_view
node_task_list_view -.->|"uses layout"| node_app_layout
node_login_view -.->|"uses layout"| node_guest_layout
node_register_view -.->|"uses layout"| node_guest_layout
node_task_model -.->|"persists records"| node_database

click node_front "https://github.com/phnaves/taskflow/blob/main/public/index.php"
click node_bootstrap "https://github.com/phnaves/taskflow/blob/main/bootstrap/app.php"
click node_web_routes "https://github.com/phnaves/taskflow/blob/main/routes/web.php"
click node_auth_routes "https://github.com/phnaves/taskflow/blob/main/routes/auth.php"
click node_session_controller "https://github.com/phnaves/taskflow/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_registration_controller "https://github.com/phnaves/taskflow/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php"
click node_login_validation "https://github.com/phnaves/taskflow/blob/main/app/Http/Requests/Auth/LoginRequest.php"
click node_register_validation "https://github.com/phnaves/taskflow/blob/main/app/Http/Requests/Auth/RegisterRequest.php"
click node_auth_service "https://github.com/phnaves/taskflow/blob/main/app/Services/Auth/AuthService.php"
click node_user_model "https://github.com/phnaves/taskflow/blob/main/app/Models/User.php"
click node_task_controller "https://github.com/phnaves/taskflow/blob/main/app/Http/Controllers/TaskController.php"
click node_task_validation "https://github.com/phnaves/taskflow/blob/main/app/Http/Requests/Task/StoreTaskRequest.php"
click node_task_update_validation "https://github.com/phnaves/taskflow/blob/main/app/Http/Requests/Task/UpdateTaskRequest.php"
click node_task_service "https://github.com/phnaves/taskflow/blob/main/app/Services/Task/TaskService.php"
click node_task_model "https://github.com/phnaves/taskflow/blob/main/app/Models/Task.php"
click node_database "https://github.com/phnaves/taskflow/blob/main/config/database.php"
click node_login_view "https://github.com/phnaves/taskflow/blob/main/resources/views/auth/login.blade.php"
click node_register_view "https://github.com/phnaves/taskflow/blob/main/resources/views/auth/register.blade.php"
click node_task_list_view "https://github.com/phnaves/taskflow/blob/main/resources/views/tasks/index.blade.php"
click node_task_form_view "https://github.com/phnaves/taskflow/blob/main/resources/views/tasks/_form.blade.php"
click node_app_layout "https://github.com/phnaves/taskflow/blob/main/resources/views/layouts/app.blade.php"
click node_guest_layout "https://github.com/phnaves/taskflow/blob/main/resources/views/layouts/guest.blade.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_web_routes,node_auth_routes,node_browser toneBlue
class node_session_controller,node_registration_controller,node_login_validation,node_register_validation,node_auth_service,node_user_model toneAmber
class node_task_controller,node_task_validation,node_task_update_validation,node_task_service,node_task_model,node_database toneMint
class node_login_view,node_register_view,node_task_list_view,node_task_form_view,node_app_layout,node_guest_layout toneRose
```

## Components

### Web entry

- [Laravel front controller](https://github.com/phnaves/taskflow/blob/main/public/index.php): `public/index.php`
- [Application bootstrap](https://github.com/phnaves/taskflow/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [Web routes](https://github.com/phnaves/taskflow/blob/main/routes/web.php): `routes/web.php`
- [Authentication routes](https://github.com/phnaves/taskflow/blob/main/routes/auth.php): `routes/auth.php`

### User identity

- [Login and logout](https://github.com/phnaves/taskflow/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- [User registration](https://github.com/phnaves/taskflow/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php): `app/Http/Controllers/Auth/RegisteredUserController.php`
- [Login validation](https://github.com/phnaves/taskflow/blob/main/app/Http/Requests/Auth/LoginRequest.php): `app/Http/Requests/Auth/LoginRequest.php`
- [Registration validation](https://github.com/phnaves/taskflow/blob/main/app/Http/Requests/Auth/RegisterRequest.php): `app/Http/Requests/Auth/RegisterRequest.php`
- [Authentication service](https://github.com/phnaves/taskflow/blob/main/app/Services/Auth/AuthService.php): `app/Services/Auth/AuthService.php`
- [User account model](https://github.com/phnaves/taskflow/blob/main/app/Models/User.php): `app/Models/User.php`

### Task management

- [Task actions](https://github.com/phnaves/taskflow/blob/main/app/Http/Controllers/TaskController.php): `app/Http/Controllers/TaskController.php`
- [Task request validation](https://github.com/phnaves/taskflow/blob/main/app/Http/Requests/Task/StoreTaskRequest.php): `app/Http/Requests/Task/StoreTaskRequest.php`
- [Update validation](https://github.com/phnaves/taskflow/blob/main/app/Http/Requests/Task/UpdateTaskRequest.php): `app/Http/Requests/Task/UpdateTaskRequest.php`
- [Task operations](https://github.com/phnaves/taskflow/blob/main/app/Services/Task/TaskService.php): `app/Services/Task/TaskService.php`
- [Task model](https://github.com/phnaves/taskflow/blob/main/app/Models/Task.php): `app/Models/Task.php`
- [Configured database](https://github.com/phnaves/taskflow/blob/main/config/database.php): `config/database.php`

### Web interface

- [Login screen](https://github.com/phnaves/taskflow/blob/main/resources/views/auth/login.blade.php): `resources/views/auth/login.blade.php`
- [Registration screen](https://github.com/phnaves/taskflow/blob/main/resources/views/auth/register.blade.php): `resources/views/auth/register.blade.php`
- [Task list](https://github.com/phnaves/taskflow/blob/main/resources/views/tasks/index.blade.php): `resources/views/tasks/index.blade.php`
- [Task form](https://github.com/phnaves/taskflow/blob/main/resources/views/tasks/_form.blade.php): `resources/views/tasks/_form.blade.php`
- [Authenticated layout](https://github.com/phnaves/taskflow/blob/main/resources/views/layouts/app.blade.php): `resources/views/layouts/app.blade.php`
- [Guest layout](https://github.com/phnaves/taskflow/blob/main/resources/views/layouts/guest.blade.php): `resources/views/layouts/guest.blade.php`

### Other components

- **User browser**

## Connections

- User browser → Laravel front controller: sends request
- Laravel front controller → Application bootstrap: boots app (evidence: `public/index.php`)
- Application bootstrap → Web routes: loads routes (evidence: `bootstrap/app.php`)
- Web routes → Authentication routes: includes routes (evidence: `routes/web.php`)
- Authentication routes → Login and logout: routes to (evidence: `routes/auth.php`)
- Authentication routes → User registration: routes to (evidence: `routes/auth.php`)
- Web routes → Task actions: routes to (evidence: `routes/web.php`)
- Login and logout → Login validation: accepts request (evidence: `app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- User registration → Registration validation: accepts request (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Login and logout → Authentication service: delegates auth (evidence: `app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- User registration → Authentication service: delegates signup (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Authentication service → User account model: creates user (evidence: `app/Services/Auth/AuthService.php`)
- Login and logout → Login screen: renders
- User registration → Registration screen: renders
- Task actions → Task request validation: accepts create (evidence: `app/Http/Controllers/TaskController.php`)
- Task actions → Update validation: accepts update (evidence: `app/Http/Controllers/TaskController.php`)
- Task actions → Task operations: delegates actions (evidence: `app/Http/Controllers/TaskController.php`)
- Task operations → User account model: queries owned tasks (evidence: `app/Services/Task/TaskService.php`)
- Task operations → Task model: filters and updates (evidence: `app/Services/Task/TaskService.php`)
- Task actions → Task list: renders list
- Task actions → Task form: renders form
- Task list → Authenticated layout: uses layout
- Login screen → Guest layout: uses layout
- Registration screen → Guest layout: uses layout
- Task model → Configured database: persists records
