# youssefsayed-cs/shagalni-v2 architecture

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

- Interactive diagram: https://gitdiagram.com/youssefsayed-cs/shagalni-v2
- Repository: https://github.com/youssefsayed-cs/shagalni-v2

## Overview

This Laravel application is a job-marketplace back office with account authentication and settings, plus Eloquent models for employers, vacancies, job seekers, and applications. The visible user-to-result workflow is account registration: Fortify exposes the registration view, delegates creation to a validated action, and persists a User. Marketplace capabilities are represented in the domain model and seeders, but no job-browsing or application routes/controllers appear in the supplied tree. Seed relationships are based on excerpts; unsampled UI and route behavior is not expanded.

Main entry points: [`job-backoffice/app/Models/User.php`](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/User.php) (User account), [`job-backoffice/database/seeders/JobSeekerSeeder.php`](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/database/seeders/JobSeekerSeeder.php) (Seeker seeder), [`job-backoffice/app/Models/JobVacancy.php`](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/JobVacancy.php) (Job vacancy), [`job-backoffice/app/Providers/FortifyServiceProvider.php`](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Providers/FortifyServiceProvider.php) (Fortify auth)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_auth["Accounts and security"]
  node_fortify["Fortify auth"]
  node_auth_views["Auth views"]
  node_register["Registration action<br/>[CreateNewUser.php]"]
  node_profile_rules["Profile validation"]
end

subgraph group_market["Marketplace domain"]
  node_user["User account<br/>[User.php]"]
  node_company["Company<br/>[Company.php]"]
  node_vacancy["Job vacancy<br/>[JobVacancy.php]"]
  node_category["Job category<br/>[JobCategory.php]"]
  node_skill["Skills<br/>[Skill.php]"]
  node_seeker["Seeker profile"]
  node_application["Job application<br/>[JobApplication.php]"]
  node_resume["Resume<br/>[Resume.php]"]
  node_education["Education<br/>[Education.php]"]
  node_experience["Work experience<br/>[WorkExperience.php]"]
end

subgraph group_seed["Demo data loading"]
  node_db_seeder["Seed orchestrator<br/>[DatabaseSeeder.php]"]
  node_seeker_seed["Seeker seeder"]
  node_json_data["JSON reader<br/>[ReadsJsonData.php]"]
end

subgraph group_shell["Application shell"]
  node_install_command["Feature installer"]
  node_bootstrap["HTTP bootstrap<br/>[app.php]"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_settings_routes["Settings routes<br/>[settings.php]"]
end

node_person(("User"))

node_person -->|"uses auth"| node_fortify
node_fortify -->|"registers views"| node_auth_views
node_fortify -->|"delegates creation"| node_register
node_register -->|"uses rules"| node_profile_rules
node_register -->|"creates account"| node_user
node_user -->|"has one"| node_company
node_user -->|"has profile"| node_seeker
node_user -->|"saves jobs"| node_vacancy
node_user -->|"has skills"| node_skill
node_user -->|"has applications"| node_application
node_user -->|"has resumes"| node_resume
node_user -->|"has education"| node_education
node_user -->|"has experience"| node_experience
node_vacancy -->|"belongs to"| node_company
node_vacancy -->|"classified by"| node_category
node_vacancy -->|"has applications"| node_application
node_vacancy -->|"tagged with"| node_skill
node_db_seeder -->|"runs seeder"| node_seeker_seed
node_seeker_seed -->|"reads seed data"| node_json_data
node_seeker_seed -->|"looks up users"| node_user
node_seeker_seed -->|"updates profiles"| node_seeker
node_seeker_seed -->|"matches saved jobs"| node_vacancy
node_seeker_seed -->|"syncs skills"| node_skill
node_bootstrap -->|"loads routes"| node_web_routes
node_web_routes -->|"includes routes"| node_settings_routes

click node_fortify "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Providers/FortifyServiceProvider.php"
click node_auth_views "https://github.com/youssefsayed-cs/shagalni-v2/tree/main/job-backoffice/resources/views/pages/auth"
click node_register "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Actions/Fortify/CreateNewUser.php"
click node_profile_rules "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Concerns/ProfileValidationRules.php"
click node_user "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/User.php"
click node_company "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/Company.php"
click node_vacancy "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/JobVacancy.php"
click node_category "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/JobCategory.php"
click node_skill "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/Skill.php"
click node_seeker "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/JobSeekerProfile.php"
click node_application "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/JobApplication.php"
click node_resume "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/Resume.php"
click node_education "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/Education.php"
click node_experience "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/WorkExperience.php"
click node_db_seeder "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/database/seeders/DatabaseSeeder.php"
click node_seeker_seed "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/database/seeders/JobSeekerSeeder.php"
click node_json_data "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Concerns/ReadsJsonData.php"
click node_install_command "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Console/Commands/InstallFeaturesCommand.php"
click node_bootstrap "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/bootstrap/app.php"
click node_web_routes "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/routes/web.php"
click node_settings_routes "https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/routes/settings.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_fortify,node_auth_views,node_register,node_profile_rules,node_person toneBlue
class node_user,node_company,node_vacancy,node_category,node_skill,node_seeker,node_application,node_resume,node_education,node_experience toneAmber
class node_db_seeder,node_seeker_seed,node_json_data toneMint
class node_install_command,node_bootstrap,node_web_routes,node_settings_routes toneRose
```

## Components

### Accounts and security

- [Fortify auth](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Providers/FortifyServiceProvider.php): `job-backoffice/app/Providers/FortifyServiceProvider.php`
- [Auth views](https://github.com/youssefsayed-cs/shagalni-v2/tree/main/job-backoffice/resources/views/pages/auth): `job-backoffice/resources/views/pages/auth`
- [Registration action](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Actions/Fortify/CreateNewUser.php): `job-backoffice/app/Actions/Fortify/CreateNewUser.php`
- [Profile validation](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Concerns/ProfileValidationRules.php): `job-backoffice/app/Concerns/ProfileValidationRules.php`

### Marketplace domain

- [User account](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/User.php): `job-backoffice/app/Models/User.php`
- [Company](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/Company.php): `job-backoffice/app/Models/Company.php`
- [Job vacancy](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/JobVacancy.php): `job-backoffice/app/Models/JobVacancy.php`
- [Job category](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/JobCategory.php): `job-backoffice/app/Models/JobCategory.php`
- [Skills](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/Skill.php): `job-backoffice/app/Models/Skill.php`
- [Seeker profile](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/JobSeekerProfile.php): `job-backoffice/app/Models/JobSeekerProfile.php`
- [Job application](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/JobApplication.php): `job-backoffice/app/Models/JobApplication.php`
- [Resume](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/Resume.php): `job-backoffice/app/Models/Resume.php`
- [Education](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/Education.php): `job-backoffice/app/Models/Education.php`
- [Work experience](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Models/WorkExperience.php): `job-backoffice/app/Models/WorkExperience.php`

### Demo data loading

- [Seed orchestrator](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/database/seeders/DatabaseSeeder.php): `job-backoffice/database/seeders/DatabaseSeeder.php`
- [Seeker seeder](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/database/seeders/JobSeekerSeeder.php): `job-backoffice/database/seeders/JobSeekerSeeder.php`
- [JSON reader](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Concerns/ReadsJsonData.php): `job-backoffice/app/Concerns/ReadsJsonData.php`

### Application shell

- [Feature installer](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/app/Console/Commands/InstallFeaturesCommand.php): `job-backoffice/app/Console/Commands/InstallFeaturesCommand.php`
- [HTTP bootstrap](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/bootstrap/app.php): `job-backoffice/bootstrap/app.php`
- [Web routes](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/routes/web.php): `job-backoffice/routes/web.php`
- [Settings routes](https://github.com/youssefsayed-cs/shagalni-v2/blob/main/job-backoffice/routes/settings.php): `job-backoffice/routes/settings.php`

### Other components

- **User**

## Connections

- User → Fortify auth: uses auth (evidence: `job-backoffice/app/Providers/FortifyServiceProvider.php`)
- Fortify auth → Auth views: registers views (evidence: `job-backoffice/app/Providers/FortifyServiceProvider.php`)
- Fortify auth → Registration action: delegates creation (evidence: `job-backoffice/app/Providers/FortifyServiceProvider.php`)
- Registration action → Profile validation: uses rules (evidence: `job-backoffice/app/Actions/Fortify/CreateNewUser.php`)
- Registration action → User account: creates account (evidence: `job-backoffice/app/Actions/Fortify/CreateNewUser.php`)
- User account → Company: has one (evidence: `job-backoffice/app/Models/User.php`)
- User account → Seeker profile: has profile (evidence: `job-backoffice/app/Models/User.php`)
- User account → Job vacancy: saves jobs (evidence: `job-backoffice/app/Models/User.php`)
- User account → Skills: has skills (evidence: `job-backoffice/app/Models/User.php`)
- User account → Job application: has applications (evidence: `job-backoffice/app/Models/User.php`)
- User account → Resume: has resumes (evidence: `job-backoffice/app/Models/User.php`)
- User account → Education: has education (evidence: `job-backoffice/app/Models/User.php`)
- User account → Work experience: has experience (evidence: `job-backoffice/app/Models/User.php`)
- Job vacancy → Company: belongs to (evidence: `job-backoffice/app/Models/JobVacancy.php`)
- Job vacancy → Job category: classified by (evidence: `job-backoffice/app/Models/JobVacancy.php`)
- Job vacancy → Job application: has applications (evidence: `job-backoffice/app/Models/JobVacancy.php`)
- Job vacancy → Skills: tagged with (evidence: `job-backoffice/app/Models/JobVacancy.php`)
- Seed orchestrator → Seeker seeder: runs seeder (evidence: `job-backoffice/database/seeders/DatabaseSeeder.php`)
- Seeker seeder → JSON reader: reads seed data (evidence: `job-backoffice/database/seeders/JobSeekerSeeder.php`)
- Seeker seeder → User account: looks up users (evidence: `job-backoffice/database/seeders/JobSeekerSeeder.php`)
- Seeker seeder → Seeker profile: updates profiles (evidence: `job-backoffice/database/seeders/JobSeekerSeeder.php`)
- Seeker seeder → Job vacancy: matches saved jobs (evidence: `job-backoffice/database/seeders/JobSeekerSeeder.php`)
- Seeker seeder → Skills: syncs skills (evidence: `job-backoffice/database/seeders/JobSeekerSeeder.php`)
- HTTP bootstrap → Web routes: loads routes (evidence: `job-backoffice/bootstrap/app.php`)
- Web routes → Settings routes: includes routes (evidence: `job-backoffice/routes/web.php`)
