# anas98re/hollywood-smile architecture

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

- Interactive diagram: https://gitdiagram.com/anas98re/hollywood-smile
- Repository: https://github.com/anas98re/hollywood-smile

## Overview

This Laravel API appears to support a dental-care and dental-student workflow: account registration, student/patient requests, matching and appointments, and patient records. The tree also shows administration, disease catalogs, laboratory scheduling, products and prescriptions, and notifications. Source excerpts confirm selected registration, matching, record, disease, and lab behaviors; many controller and route implementations were not sampled, so those branches are shown without speculative call links.

Main entry points: [`app/Services/StudentService.php`](https://github.com/anas98re/hollywood-smile/blob/main/app/Services/StudentService.php) (Student services), [`app/Services/AdminService.php`](https://github.com/anas98re/hollywood-smile/blob/main/app/Services/AdminService.php) (Administration), [`app/Services/labManagerService.php`](https://github.com/anas98re/hollywood-smile/blob/main/app/Services/labManagerService.php) (Lab appointments), [`app/Providers/RouteServiceProvider.php`](https://github.com/anas98re/hollywood-smile/blob/main/app/Providers/RouteServiceProvider.php) (Route registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["API entry"]
  node_routing["Route registration"]
  node_api["API routes<br/>[api.php]"]
  node_web["Web routes<br/>[web.php]"]
end

subgraph group_accounts["Accounts and roles"]
  node_registration["Registration and sign-in"]
  node_identity["User identity<br/>[User.php]"]
  node_student["Student services<br/>[StudentService.php]"]
  node_student_api["Student endpoints"]
  node_admin["Administration<br/>[AdminService.php]"]
end

subgraph group_care["Care coordination"]
  node_patient["Patient services<br/>[PatientService.php]"]
  node_patient_requests["Patient requests"]
  node_student_requests["Student requests"]
  node_calendar["Appointments calendar<br/>[calendar.php]"]
  node_records["Patient records<br/>[patient_record.php]"]
  node_disease["Disease catalog"]
  node_disease_data["Disease data<br/>[disease.php]"]
end

subgraph group_operations["Clinic operations"]
  node_lab["Lab appointments"]
  node_lab_data["Lab appointment data"]
  node_commerce["Products and prescriptions"]
  node_notifications["Admin notifications"]
end

node_client(("API client"))
node_cloudinary["Cloudinary media"]

node_client -->|"sends requests"| node_routing
node_routing -->|"loads API routes"| node_api
node_routing -->|"loads web routes"| node_web
node_registration -->|"creates users"| node_identity
node_registration -->|"uploads cards"| node_cloudinary
node_student_api -->|"delegates to"| node_student
node_student -->|"queries appointments"| node_calendar
node_student -->|"creates records"| node_records
node_student -->|"sends alerts"| node_notifications
node_admin -->|"matches requests"| node_patient_requests
node_admin -->|"matches requests"| node_student_requests
node_admin -->|"notifies users"| node_notifications
node_disease -->|"uses model"| node_disease_data
node_lab -->|"creates bookings"| node_lab_data
node_lab -->|"updates photo"| node_records
node_lab -->|"uploads photo"| node_cloudinary

click node_routing "https://github.com/anas98re/hollywood-smile/blob/main/app/Providers/RouteServiceProvider.php"
click node_api "https://github.com/anas98re/hollywood-smile/blob/main/routes/api.php"
click node_web "https://github.com/anas98re/hollywood-smile/blob/main/routes/web.php"
click node_registration "https://github.com/anas98re/hollywood-smile/blob/main/app/Http/Controllers/RegisterController.php"
click node_identity "https://github.com/anas98re/hollywood-smile/blob/main/app/Models/User.php"
click node_student "https://github.com/anas98re/hollywood-smile/blob/main/app/Services/StudentService.php"
click node_student_api "https://github.com/anas98re/hollywood-smile/blob/main/app/Http/Controllers/StudentController.php"
click node_admin "https://github.com/anas98re/hollywood-smile/blob/main/app/Services/AdminService.php"
click node_patient "https://github.com/anas98re/hollywood-smile/blob/main/app/Services/PatientService.php"
click node_patient_requests "https://github.com/anas98re/hollywood-smile/blob/main/app/Models/patient_request.php"
click node_student_requests "https://github.com/anas98re/hollywood-smile/blob/main/app/Models/student_request.php"
click node_calendar "https://github.com/anas98re/hollywood-smile/blob/main/app/Models/calendar.php"
click node_records "https://github.com/anas98re/hollywood-smile/blob/main/app/Models/patient_record.php"
click node_disease "https://github.com/anas98re/hollywood-smile/blob/main/app/Http/Controllers/DiseaseController.php"
click node_disease_data "https://github.com/anas98re/hollywood-smile/blob/main/app/Models/disease.php"
click node_lab "https://github.com/anas98re/hollywood-smile/blob/main/app/Services/labManagerService.php"
click node_lab_data "https://github.com/anas98re/hollywood-smile/blob/main/app/Models/lab_appointment.php"
click node_commerce "https://github.com/anas98re/hollywood-smile/blob/main/app/Http/Controllers/ProductController.php"
click node_notifications "https://github.com/anas98re/hollywood-smile/blob/main/app/Notifications/AdminNotification.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_routing,node_api,node_web,node_client toneBlue
class node_registration,node_identity,node_student,node_student_api,node_admin toneAmber
class node_patient,node_patient_requests,node_student_requests,node_calendar,node_records,node_disease,node_disease_data toneMint
class node_lab,node_lab_data,node_commerce,node_notifications toneRose
class node_cloudinary toneIndigo
```

## Components

### API entry

- [Route registration](https://github.com/anas98re/hollywood-smile/blob/main/app/Providers/RouteServiceProvider.php): `app/Providers/RouteServiceProvider.php`
- [API routes](https://github.com/anas98re/hollywood-smile/blob/main/routes/api.php): `routes/api.php`
- [Web routes](https://github.com/anas98re/hollywood-smile/blob/main/routes/web.php): `routes/web.php`

### Accounts and roles

- [Registration and sign-in](https://github.com/anas98re/hollywood-smile/blob/main/app/Http/Controllers/RegisterController.php): `app/Http/Controllers/RegisterController.php`
- [User identity](https://github.com/anas98re/hollywood-smile/blob/main/app/Models/User.php): `app/Models/User.php`
- [Student services](https://github.com/anas98re/hollywood-smile/blob/main/app/Services/StudentService.php): `app/Services/StudentService.php`
- [Student endpoints](https://github.com/anas98re/hollywood-smile/blob/main/app/Http/Controllers/StudentController.php): `app/Http/Controllers/StudentController.php`
- [Administration](https://github.com/anas98re/hollywood-smile/blob/main/app/Services/AdminService.php): `app/Services/AdminService.php`

### Care coordination

- [Patient services](https://github.com/anas98re/hollywood-smile/blob/main/app/Services/PatientService.php): `app/Services/PatientService.php`
- [Patient requests](https://github.com/anas98re/hollywood-smile/blob/main/app/Models/patient_request.php): `app/Models/patient_request.php`
- [Student requests](https://github.com/anas98re/hollywood-smile/blob/main/app/Models/student_request.php): `app/Models/student_request.php`
- [Appointments calendar](https://github.com/anas98re/hollywood-smile/blob/main/app/Models/calendar.php): `app/Models/calendar.php`
- [Patient records](https://github.com/anas98re/hollywood-smile/blob/main/app/Models/patient_record.php): `app/Models/patient_record.php`
- [Disease catalog](https://github.com/anas98re/hollywood-smile/blob/main/app/Http/Controllers/DiseaseController.php): `app/Http/Controllers/DiseaseController.php`
- [Disease data](https://github.com/anas98re/hollywood-smile/blob/main/app/Models/disease.php): `app/Models/disease.php`

### Clinic operations

- [Lab appointments](https://github.com/anas98re/hollywood-smile/blob/main/app/Services/labManagerService.php): `app/Services/labManagerService.php`
- [Lab appointment data](https://github.com/anas98re/hollywood-smile/blob/main/app/Models/lab_appointment.php): `app/Models/lab_appointment.php`
- [Products and prescriptions](https://github.com/anas98re/hollywood-smile/blob/main/app/Http/Controllers/ProductController.php): `app/Http/Controllers/ProductController.php`
- [Admin notifications](https://github.com/anas98re/hollywood-smile/blob/main/app/Notifications/AdminNotification.php): `app/Notifications/AdminNotification.php`

### Other components

- **API client**
- **Cloudinary media**

## Connections

- API client → Route registration: sends requests
- Route registration → API routes: loads API routes (evidence: `app/Providers/RouteServiceProvider.php`)
- Route registration → Web routes: loads web routes (evidence: `app/Providers/RouteServiceProvider.php`)
- Registration and sign-in → User identity: creates users (evidence: `app/Http/Controllers/RegisterController.php`)
- Registration and sign-in → Cloudinary media: uploads cards (evidence: `app/Http/Controllers/RegisterController.php`)
- Student endpoints → Student services: delegates to (evidence: `app/Http/Controllers/StudentController.php`)
- Student services → Appointments calendar: queries appointments (evidence: `app/Services/StudentService.php`)
- Student services → Patient records: creates records (evidence: `app/Services/StudentService.php`)
- Student services → Admin notifications: sends alerts (evidence: `app/Services/StudentService.php`)
- Administration → Patient requests: matches requests (evidence: `app/Services/AdminService.php`)
- Administration → Student requests: matches requests (evidence: `app/Services/AdminService.php`)
- Administration → Admin notifications: notifies users (evidence: `app/Services/AdminService.php`)
- Disease catalog → Disease data: uses model (evidence: `app/Http/Controllers/DiseaseController.php`)
- Lab appointments → Lab appointment data: creates bookings (evidence: `app/Services/labManagerService.php`)
- Lab appointments → Patient records: updates photo (evidence: `app/Services/labManagerService.php`)
- Lab appointments → Cloudinary media: uploads photo (evidence: `app/Services/labManagerService.php`)
