# rachellandos/laravelprojetofinal architecture

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

- Interactive diagram: https://gitdiagram.com/rachellandos/laravelprojetofinal
- Repository: https://github.com/rachellandos/laravelprojetofinal

## Overview

This Laravel application supports a lost-and-found pet workflow: people browse and submit pet listings, while administrators review and manage them. Separate screens support user administration, and an API exposes user CRUD operations. Authentication is configured through Fortify. The graph follows only relationships visible in the supplied excerpts or SOURCE INDEX; unsampled route and view details are not inferred beyond those references.

Main entry points: [`routes/web.php`](https://github.com/rachellandos/laravelprojetofinal/blob/main/routes/web.php) (Web routes), [`app/Models/User.php`](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Models/User.php) (User records), [`app/Providers/FortifyServiceProvider.php`](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Providers/FortifyServiceProvider.php) (Fortify setup), [`app/Http/Controllers/PetController.php`](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Http/Controllers/PetController.php) (Pet listings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web and API entry"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_api_routes["API routes<br/>[api.php]"]
  node_task_api["User API"]
end

subgraph group_pets["Pet listings and review"]
  node_pet_controller["Pet listings<br/>[PetController.php]"]
  node_dashboard_controller["Review dashboard"]
  node_pet_views["Pet pages"]
  node_dashboard_views["Dashboard pages"]
end

subgraph group_accounts["Accounts and authentication"]
  node_user_controller["User administration<br/>[UserController.php]"]
  node_user_views["User pages"]
  node_auth_provider["Fortify setup"]
  node_create_user["User registration<br/>[CreateNewUser.php]"]
  node_update_profile["Profile updates"]
  node_login_view["Login page<br/>[login.blade.php]"]
end

subgraph group_shared["Shared application data"]
  node_middleware["Admin middleware<br/>[IsAdmin.php]"]
  node_pet_model[("Pet records<br/>[Pet.php]")]
  node_user_model[("User records<br/>[User.php]")]
  node_util_controller["Utility pages<br/>[UtilController.php]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"requests pages"| node_web_routes
node_web_routes -->|"routes to"| node_pet_controller
node_web_routes -->|"routes to"| node_dashboard_controller
node_web_routes -->|"routes to"| node_user_controller
node_web_routes -->|"routes to"| node_util_controller
node_api_routes -->|"routes to"| node_task_api
node_pet_controller -->|"queries and updates"| node_pet_model
node_dashboard_controller -->|"queries and updates"| node_pet_model
node_pet_controller -->|"renders"| node_pet_views
node_dashboard_controller -->|"renders"| node_dashboard_views
node_user_controller -->|"queries and updates"| node_user_model
node_user_controller -->|"renders"| node_user_views
node_task_api -->|"reads and updates"| node_user_model
node_auth_provider -->|"registers action"| node_create_user
node_auth_provider -->|"registers action"| node_update_profile
node_auth_provider -->|"configures view"| node_login_view
node_create_user -->|"creates user"| node_user_model
node_update_profile -->|"updates user"| node_user_model
node_middleware -->|"checks role"| node_user_model

click node_web_routes "https://github.com/rachellandos/laravelprojetofinal/blob/main/routes/web.php"
click node_api_routes "https://github.com/rachellandos/laravelprojetofinal/blob/main/routes/api.php"
click node_pet_controller "https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Http/Controllers/PetController.php"
click node_dashboard_controller "https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Http/Controllers/DashboardController.php"
click node_pet_views "https://github.com/rachellandos/laravelprojetofinal/tree/main/resources/views/pets"
click node_dashboard_views "https://github.com/rachellandos/laravelprojetofinal/tree/main/resources/views/dashboard"
click node_user_controller "https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Http/Controllers/UserController.php"
click node_user_views "https://github.com/rachellandos/laravelprojetofinal/tree/main/resources/views/users"
click node_auth_provider "https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Providers/FortifyServiceProvider.php"
click node_create_user "https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Actions/Fortify/CreateNewUser.php"
click node_update_profile "https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Actions/Fortify/UpdateUserProfileInformation.php"
click node_login_view "https://github.com/rachellandos/laravelprojetofinal/blob/main/resources/views/auth/login.blade.php"
click node_middleware "https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Http/Middleware/IsAdmin.php"
click node_task_api "https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Http/Controllers/TaskAPIController.php"
click node_pet_model "https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Models/Pet.php"
click node_user_model "https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Models/User.php"
click node_util_controller "https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Http/Controllers/UtilController.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_api_routes,node_task_api toneBlue
class node_pet_controller,node_dashboard_controller,node_pet_views,node_dashboard_views toneAmber
class node_user_controller,node_user_views,node_auth_provider,node_create_user,node_update_profile,node_login_view toneMint
class node_middleware,node_pet_model,node_user_model,node_util_controller toneRose
class node_visitor toneIndigo
```

## Components

### Web and API entry

- [Web routes](https://github.com/rachellandos/laravelprojetofinal/blob/main/routes/web.php): `routes/web.php`
- [API routes](https://github.com/rachellandos/laravelprojetofinal/blob/main/routes/api.php): `routes/api.php`
- [User API](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Http/Controllers/TaskAPIController.php): `app/Http/Controllers/TaskAPIController.php`

### Pet listings and review

- [Pet listings](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Http/Controllers/PetController.php): `app/Http/Controllers/PetController.php`
- [Review dashboard](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`
- [Pet pages](https://github.com/rachellandos/laravelprojetofinal/tree/main/resources/views/pets): `resources/views/pets`
- [Dashboard pages](https://github.com/rachellandos/laravelprojetofinal/tree/main/resources/views/dashboard): `resources/views/dashboard`

### Accounts and authentication

- [User administration](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Http/Controllers/UserController.php): `app/Http/Controllers/UserController.php`
- [User pages](https://github.com/rachellandos/laravelprojetofinal/tree/main/resources/views/users): `resources/views/users`
- [Fortify setup](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Providers/FortifyServiceProvider.php): `app/Providers/FortifyServiceProvider.php`
- [User registration](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Actions/Fortify/CreateNewUser.php): `app/Actions/Fortify/CreateNewUser.php`
- [Profile updates](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Actions/Fortify/UpdateUserProfileInformation.php): `app/Actions/Fortify/UpdateUserProfileInformation.php`
- [Login page](https://github.com/rachellandos/laravelprojetofinal/blob/main/resources/views/auth/login.blade.php): `resources/views/auth/login.blade.php`

### Shared application data

- [Admin middleware](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Http/Middleware/IsAdmin.php): `app/Http/Middleware/IsAdmin.php`
- [Pet records](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Models/Pet.php): `app/Models/Pet.php`
- [User records](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Models/User.php): `app/Models/User.php`
- [Utility pages](https://github.com/rachellandos/laravelprojetofinal/blob/main/app/Http/Controllers/UtilController.php): `app/Http/Controllers/UtilController.php`

### Other components

- **Visitor**

## Connections

- Visitor → Web routes: requests pages
- Web routes → Pet listings: routes to (evidence: `routes/web.php`)
- Web routes → Review dashboard: routes to (evidence: `routes/web.php`)
- Web routes → User administration: routes to (evidence: `routes/web.php`)
- Web routes → Utility pages: routes to (evidence: `routes/web.php`)
- API routes → User API: routes to (evidence: `routes/api.php`)
- Pet listings → Pet records: queries and updates (evidence: `app/Http/Controllers/PetController.php`)
- Review dashboard → Pet records: queries and updates (evidence: `app/Http/Controllers/DashboardController.php`)
- Pet listings → Pet pages: renders (evidence: `app/Http/Controllers/PetController.php`)
- Review dashboard → Dashboard pages: renders (evidence: `app/Http/Controllers/DashboardController.php`)
- User administration → User records: queries and updates (evidence: `app/Http/Controllers/UserController.php`)
- User administration → User pages: renders (evidence: `app/Http/Controllers/UserController.php`)
- User API → User records: reads and updates (evidence: `app/Http/Controllers/TaskAPIController.php`)
- Fortify setup → User registration: registers action (evidence: `app/Providers/FortifyServiceProvider.php`)
- Fortify setup → Profile updates: registers action (evidence: `app/Providers/FortifyServiceProvider.php`)
- Fortify setup → Login page: configures view (evidence: `app/Providers/FortifyServiceProvider.php`)
- User registration → User records: creates user (evidence: `app/Actions/Fortify/CreateNewUser.php`)
- Profile updates → User records: updates user (evidence: `app/Actions/Fortify/UpdateUserProfileInformation.php`)
- Admin middleware → User records: checks role (evidence: `app/Http/Middleware/IsAdmin.php`)
