# thucquyen248/24ct2_tran_ngoc_thuc_quyen architecture

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

- Interactive diagram: https://gitdiagram.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen
- Repository: https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen

## Overview

Petcare is a Laravel pet-care application with customer-facing account, pet, appointment, health, shop, and review workflows plus staff-facing appointment and inventory functions. Requests enter through Laravel’s web routes and are dispatched to a single controller, which renders pages or returns API responses and performs model/database operations. The routes also advertise medical-record and community-feed endpoints, but their implementations are not shown in the sampled controller excerpt; those capabilities are represented without inferred internal data flows.

Main entry points: [`petcare/app/Http/Controllers/PetCareController.php`](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Http/Controllers/PetCareController.php) (Pet-care controller), [`petcare/routes/web.php`](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/routes/web.php) (Web routes), [`petcare/public/index.php`](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/public/index.php) (Laravel entry), [`petcare/bootstrap/app.php`](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/bootstrap/app.php) (App bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Request handling"]
  node_http["Laravel entry<br/>[index.php]"]
  node_bootstrap["App bootstrap<br/>[app.php]"]
  node_routes["Web routes<br/>[web.php]"]
  node_controller["Pet-care controller"]
end

subgraph group_customer["Customer services"]
  node_auth["Accounts and login"]
  node_pets["Pet profiles<br/>[Pet.php]"]
  node_appointments["Appointments<br/>[Appointment.php]"]
  node_health["Health records"]
  node_shop["Shop and orders<br/>[Product.php]"]
  node_reviews["Customer reviews"]
  node_community["Community feed<br/>[web.php]"]
  node_customer_pages["Customer pages<br/>[index.blade.php]"]
  node_login_page["Login page<br/>[login.blade.php]"]
end

subgraph group_operations["Staff operations"]
  node_dashboard["Staff dashboard"]
  node_staff["Staff operations"]
end

subgraph group_data["Domain data"]
  node_users["User records<br/>[User.php]"]
  node_pet_records["Pet records<br/>[Pet.php]"]
  node_appointment_records["Appointment records<br/>[Appointment.php]"]
  node_product_records["Product records<br/>[Product.php]"]
  node_database[("Application database<br/>[database.php]")]
end

node_visitor(("User"))

node_visitor -->|"sends requests"| node_http
node_http -->|"boots app"| node_bootstrap
node_bootstrap -->|"loads routes"| node_routes
node_routes -->|"dispatches to"| node_controller
node_controller -->|"handles auth"| node_auth
node_controller -->|"reads and writes"| node_pets
node_controller -->|"manages appointments"| node_appointments
node_controller -->|"logs health"| node_health
node_controller -->|"reads inventory"| node_shop
node_controller -->|"saves reviews"| node_reviews
node_routes -->|"routes feed requests"| node_community
node_controller -->|"renders pages"| node_customer_pages
node_controller -->|"renders login"| node_login_page
node_controller -->|"renders dashboard"| node_dashboard
node_controller -->|"serves staff APIs"| node_staff
node_auth -->|"queries and creates"| node_users
node_pets -->|"models"| node_pet_records
node_appointments -->|"models"| node_appointment_records
node_shop -->|"models"| node_product_records
node_controller -->|"writes tables"| node_database

click node_http "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/public/index.php"
click node_bootstrap "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/bootstrap/app.php"
click node_routes "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/routes/web.php"
click node_controller "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Http/Controllers/PetCareController.php"
click node_auth "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Http/Controllers/PetCareController.php"
click node_pets "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/Pet.php"
click node_appointments "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/Appointment.php"
click node_health "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Http/Controllers/PetCareController.php"
click node_shop "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/Product.php"
click node_reviews "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Http/Controllers/PetCareController.php"
click node_community "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/routes/web.php"
click node_customer_pages "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/resources/views/index.blade.php"
click node_login_page "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/resources/views/login.blade.php"
click node_dashboard "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/resources/views/dashboard.blade.php"
click node_staff "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Http/Controllers/PetCareController.php"
click node_users "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/User.php"
click node_pet_records "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/Pet.php"
click node_appointment_records "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/Appointment.php"
click node_product_records "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/Product.php"
click node_database "https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/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_http,node_bootstrap,node_routes,node_controller,node_visitor toneBlue
class node_auth,node_pets,node_appointments,node_health,node_shop,node_reviews,node_community,node_customer_pages,node_login_page toneAmber
class node_dashboard,node_staff toneMint
class node_users,node_pet_records,node_appointment_records,node_product_records,node_database toneRose
```

## Components

### Request handling

- [Laravel entry](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/public/index.php): `petcare/public/index.php`
- [App bootstrap](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/bootstrap/app.php): `petcare/bootstrap/app.php`
- [Web routes](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/routes/web.php): `petcare/routes/web.php`
- [Pet-care controller](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Http/Controllers/PetCareController.php): `petcare/app/Http/Controllers/PetCareController.php`

### Customer services

- [Accounts and login](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Http/Controllers/PetCareController.php): `petcare/app/Http/Controllers/PetCareController.php`
- [Pet profiles](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/Pet.php): `petcare/app/Models/Pet.php`
- [Appointments](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/Appointment.php): `petcare/app/Models/Appointment.php`
- [Health records](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Http/Controllers/PetCareController.php): `petcare/app/Http/Controllers/PetCareController.php`
- [Shop and orders](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/Product.php): `petcare/app/Models/Product.php`
- [Customer reviews](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Http/Controllers/PetCareController.php): `petcare/app/Http/Controllers/PetCareController.php`
- [Community feed](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/routes/web.php): `petcare/routes/web.php`
- [Customer pages](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/resources/views/index.blade.php): `petcare/resources/views/index.blade.php`
- [Login page](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/resources/views/login.blade.php): `petcare/resources/views/login.blade.php`

### Staff operations

- [Staff dashboard](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/resources/views/dashboard.blade.php): `petcare/resources/views/dashboard.blade.php`
- [Staff operations](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Http/Controllers/PetCareController.php): `petcare/app/Http/Controllers/PetCareController.php`

### Domain data

- [User records](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/User.php): `petcare/app/Models/User.php`
- [Pet records](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/Pet.php): `petcare/app/Models/Pet.php`
- [Appointment records](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/Appointment.php): `petcare/app/Models/Appointment.php`
- [Product records](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/app/Models/Product.php): `petcare/app/Models/Product.php`
- [Application database](https://github.com/thucquyen248/24ct2_tran_ngoc_thuc_quyen/blob/main/petcare/config/database.php): `petcare/config/database.php`

### Other components

- **User**

## Connections

- User → Laravel entry: sends requests
- Laravel entry → App bootstrap: boots app (evidence: `petcare/public/index.php`)
- App bootstrap → Web routes: loads routes (evidence: `petcare/bootstrap/app.php`)
- Web routes → Pet-care controller: dispatches to (evidence: `petcare/routes/web.php`)
- Pet-care controller → Accounts and login: handles auth (evidence: `petcare/app/Http/Controllers/PetCareController.php`)
- Pet-care controller → Pet profiles: reads and writes (evidence: `petcare/app/Http/Controllers/PetCareController.php`)
- Pet-care controller → Appointments: manages appointments (evidence: `petcare/app/Http/Controllers/PetCareController.php`)
- Pet-care controller → Health records: logs health (evidence: `petcare/app/Http/Controllers/PetCareController.php`)
- Pet-care controller → Shop and orders: reads inventory (evidence: `petcare/app/Http/Controllers/PetCareController.php`)
- Pet-care controller → Customer reviews: saves reviews (evidence: `petcare/app/Http/Controllers/PetCareController.php`)
- Web routes → Community feed: routes feed requests (evidence: `petcare/routes/web.php`)
- Pet-care controller → Customer pages: renders pages (evidence: `petcare/app/Http/Controllers/PetCareController.php`)
- Pet-care controller → Login page: renders login (evidence: `petcare/app/Http/Controllers/PetCareController.php`)
- Pet-care controller → Staff dashboard: renders dashboard (evidence: `petcare/app/Http/Controllers/PetCareController.php`)
- Pet-care controller → Staff operations: serves staff APIs (evidence: `petcare/app/Http/Controllers/PetCareController.php`)
- Accounts and login → User records: queries and creates (evidence: `petcare/app/Http/Controllers/PetCareController.php`)
- Pet profiles → Pet records: models (evidence: `petcare/app/Models/Pet.php`)
- Appointments → Appointment records: models (evidence: `petcare/app/Models/Appointment.php`)
- Shop and orders → Product records: models (evidence: `petcare/app/Models/Product.php`)
- Pet-care controller → Application database: writes tables (evidence: `petcare/app/Http/Controllers/PetCareController.php`)
