# jspacuio/clinic-appointment architecture

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

- Interactive diagram: https://gitdiagram.com/jspacuio/clinic-appointment
- Repository: https://github.com/jspacuio/clinic-appointment

## Overview

This repository is a Laravel starter web application with registration, login/logout, email verification, a dashboard, and profile editing/deletion. The main workflow is an HTTP request entering Laravel, being dispatched through web/auth routes to a controller, then returning a Blade view or redirect; user actions also update the user record. The graph focuses on these app-specific capabilities rather than Laravel framework features. Some route and view relationships rely on the SOURCE INDEX or documented framework conventions, so uncertain links are omitted.

Main entry points: [`routes/auth.php`](https://github.com/jspacuio/clinic-appointment/blob/main/routes/auth.php) (Authentication routes), [`app/Models/User.php`](https://github.com/jspacuio/clinic-appointment/blob/main/app/Models/User.php) (User model), [`app/Http/Controllers/ProfileController.php`](https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Controllers/ProfileController.php) (Profile actions), [`routes/web.php`](https://github.com/jspacuio/clinic-appointment/blob/main/routes/web.php) (Web routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["HTTP entry"]
  node_front["HTTP front controller<br/>[index.php]"]
  node_bootstrap["Application bootstrap<br/>[app.php]"]
  node_webroutes["Web routes<br/>[web.php]"]
end

subgraph group_auth["Authentication"]
  node_authroutes["Authentication routes<br/>[auth.php]"]
  node_registration["Registration"]
  node_sessions["Login and logout"]
  node_loginrequest["Login validation<br/>[LoginRequest.php]"]
  node_verification["Email verification"]
  node_verificationprompt["Verification prompt"]
  node_verificationnotice["Resend verification"]
end

subgraph group_profile["Profile management"]
  node_profilecontroller["Profile actions"]
  node_profilerequest["Profile validation"]
end

subgraph group_presentation["Blade interface"]
  node_loginview["Login and registration views<br/>[login.blade.php]"]
  node_verifyview["Verification view"]
  node_profileview["Profile editor<br/>[edit.blade.php]"]
  node_dashboard["Dashboard"]
  node_layout["Application layout<br/>[app.blade.php]"]
end

subgraph group_data["User data"]
  node_user["User model<br/>[User.php]"]
  node_database[("Database configuration<br/>[database.php]")]
end

node_visitor(("Visitor"))

node_visitor -->|"sends request"| node_front
node_front -->|"loads app"| node_bootstrap
node_bootstrap -->|"registers routes"| node_webroutes
node_webroutes -->|"includes routes"| node_authroutes
node_authroutes -->|"dispatches"| node_registration
node_authroutes -->|"dispatches"| node_sessions
node_authroutes -->|"dispatches"| node_verification
node_authroutes -->|"dispatches"| node_verificationprompt
node_authroutes -->|"dispatches"| node_verificationnotice
node_webroutes -->|"dispatches"| node_profilecontroller
node_sessions -->|"authenticates with"| node_loginrequest
node_registration -->|"creates"| node_user
node_profilecontroller -->|"validates with"| node_profilerequest
node_profilecontroller -->|"updates or deletes"| node_user
node_verification -->|"marks verified"| node_user
node_verificationnotice -->|"sends notification"| node_user
node_registration -->|"renders"| node_loginview
node_sessions -->|"renders"| node_loginview
node_verificationprompt -.->|"renders"| node_verifyview
node_profilecontroller -->|"renders"| node_profileview
node_user -->|"persists through ORM"| node_database
node_profileview -.->|"uses layout"| node_layout
node_loginview -.->|"uses layout"| node_layout

click node_front "https://github.com/jspacuio/clinic-appointment/blob/main/public/index.php"
click node_bootstrap "https://github.com/jspacuio/clinic-appointment/blob/main/bootstrap/app.php"
click node_webroutes "https://github.com/jspacuio/clinic-appointment/blob/main/routes/web.php"
click node_authroutes "https://github.com/jspacuio/clinic-appointment/blob/main/routes/auth.php"
click node_registration "https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php"
click node_sessions "https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_loginrequest "https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Requests/Auth/LoginRequest.php"
click node_verification "https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Controllers/Auth/VerifyEmailController.php"
click node_verificationprompt "https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Controllers/Auth/EmailVerificationPromptController.php"
click node_verificationnotice "https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Controllers/Auth/EmailVerificationNotificationController.php"
click node_profilecontroller "https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Controllers/ProfileController.php"
click node_profilerequest "https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Requests/ProfileUpdateRequest.php"
click node_user "https://github.com/jspacuio/clinic-appointment/blob/main/app/Models/User.php"
click node_database "https://github.com/jspacuio/clinic-appointment/blob/main/config/database.php"
click node_loginview "https://github.com/jspacuio/clinic-appointment/blob/main/resources/views/auth/login.blade.php"
click node_verifyview "https://github.com/jspacuio/clinic-appointment/blob/main/resources/views/auth/verify-email.blade.php"
click node_profileview "https://github.com/jspacuio/clinic-appointment/blob/main/resources/views/profile/edit.blade.php"
click node_dashboard "https://github.com/jspacuio/clinic-appointment/blob/main/resources/views/dashboard.blade.php"
click node_layout "https://github.com/jspacuio/clinic-appointment/blob/main/resources/views/layouts/app.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_webroutes toneBlue
class node_authroutes,node_registration,node_sessions,node_loginrequest,node_verification,node_verificationprompt,node_verificationnotice toneAmber
class node_profilecontroller,node_profilerequest toneMint
class node_loginview,node_verifyview,node_profileview,node_dashboard,node_layout toneRose
class node_user,node_database,node_visitor toneIndigo
```

## Components

### HTTP entry

- [HTTP front controller](https://github.com/jspacuio/clinic-appointment/blob/main/public/index.php): `public/index.php`
- [Application bootstrap](https://github.com/jspacuio/clinic-appointment/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [Web routes](https://github.com/jspacuio/clinic-appointment/blob/main/routes/web.php): `routes/web.php`

### Authentication

- [Authentication routes](https://github.com/jspacuio/clinic-appointment/blob/main/routes/auth.php): `routes/auth.php`
- [Registration](https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php): `app/Http/Controllers/Auth/RegisteredUserController.php`
- [Login and logout](https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- [Login validation](https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Requests/Auth/LoginRequest.php): `app/Http/Requests/Auth/LoginRequest.php`
- [Email verification](https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Controllers/Auth/VerifyEmailController.php): `app/Http/Controllers/Auth/VerifyEmailController.php`
- [Verification prompt](https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Controllers/Auth/EmailVerificationPromptController.php): `app/Http/Controllers/Auth/EmailVerificationPromptController.php`
- [Resend verification](https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Controllers/Auth/EmailVerificationNotificationController.php): `app/Http/Controllers/Auth/EmailVerificationNotificationController.php`

### Profile management

- [Profile actions](https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Controllers/ProfileController.php): `app/Http/Controllers/ProfileController.php`
- [Profile validation](https://github.com/jspacuio/clinic-appointment/blob/main/app/Http/Requests/ProfileUpdateRequest.php): `app/Http/Requests/ProfileUpdateRequest.php`

### Blade interface

- [Login and registration views](https://github.com/jspacuio/clinic-appointment/blob/main/resources/views/auth/login.blade.php): `resources/views/auth/login.blade.php`
- [Verification view](https://github.com/jspacuio/clinic-appointment/blob/main/resources/views/auth/verify-email.blade.php): `resources/views/auth/verify-email.blade.php`
- [Profile editor](https://github.com/jspacuio/clinic-appointment/blob/main/resources/views/profile/edit.blade.php): `resources/views/profile/edit.blade.php`
- [Dashboard](https://github.com/jspacuio/clinic-appointment/blob/main/resources/views/dashboard.blade.php): `resources/views/dashboard.blade.php`
- [Application layout](https://github.com/jspacuio/clinic-appointment/blob/main/resources/views/layouts/app.blade.php): `resources/views/layouts/app.blade.php`

### User data

- [User model](https://github.com/jspacuio/clinic-appointment/blob/main/app/Models/User.php): `app/Models/User.php`
- [Database configuration](https://github.com/jspacuio/clinic-appointment/blob/main/config/database.php): `config/database.php`

### Other components

- **Visitor**

## Connections

- Visitor → HTTP front controller: sends request (evidence: `public/index.php`)
- HTTP front controller → Application bootstrap: loads app (evidence: `public/index.php`)
- Application bootstrap → Web routes: registers routes (evidence: `bootstrap/app.php`)
- Web routes → Authentication routes: includes routes (evidence: `routes/web.php`)
- Authentication routes → Registration: dispatches (evidence: `routes/auth.php`)
- Authentication routes → Login and logout: dispatches (evidence: `routes/auth.php`)
- Authentication routes → Email verification: dispatches (evidence: `routes/auth.php`)
- Authentication routes → Verification prompt: dispatches (evidence: `routes/auth.php`)
- Authentication routes → Resend verification: dispatches (evidence: `routes/auth.php`)
- Web routes → Profile actions: dispatches (evidence: `routes/web.php`)
- Login and logout → Login validation: authenticates with (evidence: `app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- Registration → User model: creates (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Profile actions → Profile validation: validates with (evidence: `app/Http/Controllers/ProfileController.php`)
- Profile actions → User model: updates or deletes (evidence: `app/Http/Controllers/ProfileController.php`)
- Email verification → User model: marks verified (evidence: `app/Http/Controllers/Auth/VerifyEmailController.php`)
- Resend verification → User model: sends notification (evidence: `app/Http/Controllers/Auth/EmailVerificationNotificationController.php`)
- Registration → Login and registration views: renders (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Login and logout → Login and registration views: renders (evidence: `app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- Verification prompt → Verification view: renders
- Profile actions → Profile editor: renders (evidence: `app/Http/Controllers/ProfileController.php`)
- User model → Database configuration: persists through ORM (evidence: `app/Models/User.php`)
- Profile editor → Application layout: uses layout
- Login and registration views → Application layout: uses layout
