# zatovo/espace_emploi architecture

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

- Interactive diagram: https://gitdiagram.com/zatovo/espace_emploi
- Repository: https://github.com/zatovo/espace_emploi

## Overview

This is a Laravel recruitment portal: users register or sign in as candidates or recruiters, recruiters publish offers, and candidates submit applications with CVs. The main request path is web routes to controllers, which operate on Eloquent models and return views or responses. A separate Filament admin panel exposes offer, candidature, and user management. The graph reflects the sampled controllers, models, route references, and candidature resource; some listed admin capabilities have unsampled implementations, so their links are marked unverified or omitted.

Main entry points: [`app/Providers/Filament/AdminPanelProvider.php`](https://github.com/zatovo/espace_emploi/blob/Master/app/Providers/Filament/AdminPanelProvider.php) (Filament panel), [`routes/web.php`](https://github.com/zatovo/espace_emploi/blob/Master/routes/web.php) (Web routes), [`app/Http/Controllers/CandidatureController.php`](https://github.com/zatovo/espace_emploi/blob/Master/app/Http/Controllers/CandidatureController.php) (Application actions), [`app/Http/Controllers/AuthController.php`](https://github.com/zatovo/espace_emploi/blob/Master/app/Http/Controllers/AuthController.php) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web entry"]
  node_routes["Web routes<br/>[web.php]"]
end

subgraph group_identity["Identity"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_login_view["Login and signup<br/>[login.blade.php]"]
  node_user["User accounts<br/>[User.php]"]
end

subgraph group_recruitment["Recruitment workflow"]
  node_offer_controller["Offer actions"]
  node_offer["Job offers<br/>[Offre.php]"]
  node_recruiter_view["Recruiter dashboard"]
  node_candidate_view["Candidate dashboard"]
  node_application_controller["Application actions"]
  node_application["Applications<br/>[Candidature.php]"]
  node_cv_store[("CV file storage")]
end

subgraph group_admin["Administration"]
  node_admin_panel["Filament panel"]
  node_admin_apps["Application admin"]
  node_admin_offers["Offer admin<br/>[OffreResource.php]"]
  node_admin_users["User admin<br/>[UserResource.php]"]
  node_admin_stats["Admin statistics<br/>[StatsOverview.php]"]
end

node_visitor(("Browser user"))

node_visitor -->|"requests"| node_routes
node_routes -->|"routes to"| node_auth
node_routes -->|"routes to"| node_offer_controller
node_routes -->|"routes to"| node_application_controller
node_auth -->|"creates or reads"| node_user
node_auth -.->|"serves form"| node_login_view
node_offer_controller -->|"reads and writes"| node_offer
node_offer_controller -->|"renders"| node_recruiter_view
node_candidate_view -->|"references"| node_offer
node_application_controller -->|"reads and writes"| node_application
node_application_controller -->|"renders"| node_candidate_view
node_application_controller -->|"stores and deletes CV"| node_cv_store
node_admin_panel -.->|"loads resource"| node_admin_apps
node_admin_apps -->|"manages"| node_application
node_admin_offers -.->|"manages"| node_offer
node_admin_users -.->|"manages"| node_user
node_admin_panel -.->|"loads resource"| node_admin_offers
node_admin_panel -.->|"loads resource"| node_admin_users
node_admin_panel -.->|"shows widget"| node_admin_stats

click node_routes "https://github.com/zatovo/espace_emploi/blob/Master/routes/web.php"
click node_auth "https://github.com/zatovo/espace_emploi/blob/Master/app/Http/Controllers/AuthController.php"
click node_login_view "https://github.com/zatovo/espace_emploi/blob/Master/resources/views/auth/login.blade.php"
click node_user "https://github.com/zatovo/espace_emploi/blob/Master/app/Models/User.php"
click node_offer_controller "https://github.com/zatovo/espace_emploi/blob/Master/app/Http/Controllers/OffreController.php"
click node_offer "https://github.com/zatovo/espace_emploi/blob/Master/app/Models/Offre.php"
click node_recruiter_view "https://github.com/zatovo/espace_emploi/blob/Master/resources/views/dashboardRecru.blade.php"
click node_candidate_view "https://github.com/zatovo/espace_emploi/blob/Master/resources/views/dashboardCan.blade.php"
click node_application_controller "https://github.com/zatovo/espace_emploi/blob/Master/app/Http/Controllers/CandidatureController.php"
click node_application "https://github.com/zatovo/espace_emploi/blob/Master/app/Models/Candidature.php"
click node_admin_panel "https://github.com/zatovo/espace_emploi/blob/Master/app/Providers/Filament/AdminPanelProvider.php"
click node_admin_apps "https://github.com/zatovo/espace_emploi/blob/Master/app/Filament/Resources/CandidatureResource.php"
click node_admin_offers "https://github.com/zatovo/espace_emploi/blob/Master/app/Filament/Resources/OffreResource.php"
click node_admin_users "https://github.com/zatovo/espace_emploi/blob/Master/app/Filament/Resources/UserResource.php"
click node_admin_stats "https://github.com/zatovo/espace_emploi/blob/Master/app/Filament/Widgets/StatsOverview.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_routes,node_visitor toneBlue
class node_auth,node_login_view,node_user toneAmber
class node_offer_controller,node_offer,node_recruiter_view,node_candidate_view,node_application_controller,node_application,node_cv_store toneMint
class node_admin_panel,node_admin_apps,node_admin_offers,node_admin_users,node_admin_stats toneRose
```

## Components

### Web entry

- [Web routes](https://github.com/zatovo/espace_emploi/blob/Master/routes/web.php): `routes/web.php`

### Identity

- [Authentication](https://github.com/zatovo/espace_emploi/blob/Master/app/Http/Controllers/AuthController.php): `app/Http/Controllers/AuthController.php`
- [Login and signup](https://github.com/zatovo/espace_emploi/blob/Master/resources/views/auth/login.blade.php): `resources/views/auth/login.blade.php`
- [User accounts](https://github.com/zatovo/espace_emploi/blob/Master/app/Models/User.php): `app/Models/User.php`

### Recruitment workflow

- [Offer actions](https://github.com/zatovo/espace_emploi/blob/Master/app/Http/Controllers/OffreController.php): `app/Http/Controllers/OffreController.php`
- [Job offers](https://github.com/zatovo/espace_emploi/blob/Master/app/Models/Offre.php): `app/Models/Offre.php`
- [Recruiter dashboard](https://github.com/zatovo/espace_emploi/blob/Master/resources/views/dashboardRecru.blade.php): `resources/views/dashboardRecru.blade.php`
- [Candidate dashboard](https://github.com/zatovo/espace_emploi/blob/Master/resources/views/dashboardCan.blade.php): `resources/views/dashboardCan.blade.php`
- [Application actions](https://github.com/zatovo/espace_emploi/blob/Master/app/Http/Controllers/CandidatureController.php): `app/Http/Controllers/CandidatureController.php`
- [Applications](https://github.com/zatovo/espace_emploi/blob/Master/app/Models/Candidature.php): `app/Models/Candidature.php`
- **CV file storage**

### Administration

- [Filament panel](https://github.com/zatovo/espace_emploi/blob/Master/app/Providers/Filament/AdminPanelProvider.php): `app/Providers/Filament/AdminPanelProvider.php`
- [Application admin](https://github.com/zatovo/espace_emploi/blob/Master/app/Filament/Resources/CandidatureResource.php): `app/Filament/Resources/CandidatureResource.php`
- [Offer admin](https://github.com/zatovo/espace_emploi/blob/Master/app/Filament/Resources/OffreResource.php): `app/Filament/Resources/OffreResource.php`
- [User admin](https://github.com/zatovo/espace_emploi/blob/Master/app/Filament/Resources/UserResource.php): `app/Filament/Resources/UserResource.php`
- [Admin statistics](https://github.com/zatovo/espace_emploi/blob/Master/app/Filament/Widgets/StatsOverview.php): `app/Filament/Widgets/StatsOverview.php`

### Other components

- **Browser user**

## Connections

- Browser user → Web routes: requests (evidence: `routes/web.php`)
- Web routes → Authentication: routes to (evidence: `routes/web.php`)
- Web routes → Offer actions: routes to (evidence: `routes/web.php`)
- Web routes → Application actions: routes to (evidence: `routes/web.php`)
- Authentication → User accounts: creates or reads (evidence: `app/Http/Controllers/AuthController.php`)
- Authentication → Login and signup: serves form
- Offer actions → Job offers: reads and writes (evidence: `app/Http/Controllers/OffreController.php`)
- Offer actions → Recruiter dashboard: renders (evidence: `app/Http/Controllers/OffreController.php`)
- Candidate dashboard → Job offers: references
- Application actions → Applications: reads and writes (evidence: `app/Http/Controllers/CandidatureController.php`)
- Application actions → Candidate dashboard: renders (evidence: `app/Http/Controllers/CandidatureController.php`)
- Application actions → CV file storage: stores and deletes CV (evidence: `app/Http/Controllers/CandidatureController.php`)
- Filament panel → Application admin: loads resource
- Application admin → Applications: manages (evidence: `app/Filament/Resources/CandidatureResource.php`)
- Offer admin → Job offers: manages
- User admin → User accounts: manages
- Filament panel → Offer admin: loads resource
- Filament panel → User admin: loads resource
- Filament panel → Admin statistics: shows widget
