# tech-riad/tuitionhome architecture

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

- Interactive diagram: https://gitdiagram.com/tech-riad/tuitionhome
- Repository: https://github.com/tech-riad/tuitionhome

## Overview

Tuition Terminal is a Laravel tutoring marketplace with public/API workflows and a substantial staff backend. The likely core workflow is that tutors build profiles, parents or staff create tuition offers, tutors apply, and staff manage offers and payments. The tree also shows configuration, reviews, corporate accounts, and messaging. The README gives no product detail, and several controllers were not sampled, so those branches are included from their paths but their connections are left unverified; cited edges use only the provided source index or excerpts.

Main entry points: [`app/Models/JobApplication.php`](https://github.com/tech-riad/tuitionhome/blob/main/app/Models/JobApplication.php) (Applications), [`app/Models/Tutor.php`](https://github.com/tech-riad/tuitionhome/blob/main/app/Models/Tutor.php) (Tutor Profiles), [`app/Http/Controllers/Backend/JobOffer/AllJobOfferController.php`](https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Backend/JobOffer/AllJobOfferController.php) (Offer Administration), [`app/Http/Controllers/Frontend/Api/JobOffer/JobofferController.php`](https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Frontend/Api/JobOffer/JobofferController.php) (Job Offers API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_marketplace["Marketplace"]
  node_tutor_api["Tutor API"]
  node_job_api["Job Offers API"]
  node_applications["Applications<br/>[JobApplication.php]"]
  node_job_offers["Job Offers<br/>[JobOffer.php]"]
  node_course_catalog[("Course Catalog<br/>[Course.php]")]
  node_location_catalog[("Location Catalog<br/>[Location.php]")]
end

subgraph group_people["People and Access"]
  node_tutor_profile[("Tutor Profiles<br/>[Tutor.php]")]
  node_parent_accounts[("Parent Accounts<br/>[Parents.php]")]
  node_user_accounts[("Staff Accounts<br/>[User.php]")]
  node_authentication["Authentication"]
end

subgraph group_operations["Staff Operations"]
  node_backend_tutors["Tutor Administration"]
  node_backend_offers["Offer Administration"]
  node_payments["Payment Management"]
  node_reviews["Reviews"]
  node_configuration["Study Configuration"]
end

subgraph group_platform["Platform Services"]
  node_sms["SMS Messaging<br/>[Sms.php]"]
  node_sms_job["SMS Queue Job<br/>[SendSmsJob.php]"]
  node_bkash["bKash Payments"]
  node_r2["Cloud Storage"]
  node_reviews_store[("Review Records<br/>[TutorReview.php]")]
end

node_visitor(("Marketplace User"))

node_visitor -.->|"uses"| node_tutor_api
node_visitor -.->|"browses offers"| node_job_api
node_visitor -.->|"signs in"| node_authentication
node_backend_tutors -->|"manages"| node_tutor_profile
node_backend_tutors -->|"references"| node_user_accounts
node_backend_offers -->|"manages"| node_job_offers
node_backend_offers -->|"references"| node_applications
node_backend_offers -->|"dispatches"| node_sms_job
node_tutor_profile -->|"has applications"| node_applications
node_tutor_profile -->|"selects courses"| node_course_catalog
node_applications -->|"belongs to offer"| node_job_offers
node_applications -->|"references staff"| node_user_accounts
node_reviews -->|"creates and queries"| node_reviews_store
node_reviews -->|"validates tutor"| node_tutor_profile
node_configuration -.->|"configures courses"| node_course_catalog
node_tutor_api -.->|"uses profiles"| node_tutor_profile
node_job_api -.->|"uses offers"| node_job_offers
node_job_api -.->|"supports applications"| node_applications
node_sms_job -.->|"sends messages"| node_sms
node_payments -.->|"uses gateway"| node_bkash

click node_tutor_api "https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Frontend/Api/Tutor/TutorController.php"
click node_job_api "https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Frontend/Api/JobOffer/JobofferController.php"
click node_applications "https://github.com/tech-riad/tuitionhome/blob/main/app/Models/JobApplication.php"
click node_job_offers "https://github.com/tech-riad/tuitionhome/blob/main/app/Models/JobOffer.php"
click node_tutor_profile "https://github.com/tech-riad/tuitionhome/blob/main/app/Models/Tutor.php"
click node_parent_accounts "https://github.com/tech-riad/tuitionhome/blob/main/app/Models/Parents.php"
click node_user_accounts "https://github.com/tech-riad/tuitionhome/blob/main/app/Models/User.php"
click node_authentication "https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Auth/LoginController.php"
click node_backend_tutors "https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Backend/Tutor/BackendTutorController.php"
click node_backend_offers "https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Backend/JobOffer/AllJobOfferController.php"
click node_payments "https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Backend/Payment/PaymentController.php"
click node_reviews "https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/ReviewsController.php"
click node_configuration "https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Backend/Config/CoursesController.php"
click node_course_catalog "https://github.com/tech-riad/tuitionhome/blob/main/app/Models/Course.php"
click node_location_catalog "https://github.com/tech-riad/tuitionhome/blob/main/app/Models/Location.php"
click node_sms "https://github.com/tech-riad/tuitionhome/blob/main/app/Models/Sms.php"
click node_sms_job "https://github.com/tech-riad/tuitionhome/blob/main/app/Jobs/SendSmsJob.php"
click node_bkash "https://github.com/tech-riad/tuitionhome/blob/main/app/Services/BkashTokenService.php"
click node_r2 "https://github.com/tech-riad/tuitionhome/blob/main/app/Services/CloudflareR2Service.php"
click node_reviews_store "https://github.com/tech-riad/tuitionhome/blob/main/app/Models/TutorReview.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_tutor_api,node_job_api,node_applications,node_job_offers,node_course_catalog,node_location_catalog,node_visitor toneBlue
class node_tutor_profile,node_parent_accounts,node_user_accounts,node_authentication toneAmber
class node_backend_tutors,node_backend_offers,node_payments,node_reviews,node_configuration toneMint
class node_sms,node_sms_job,node_bkash,node_r2,node_reviews_store toneRose
```

## Components

### Marketplace

- [Tutor API](https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Frontend/Api/Tutor/TutorController.php): `app/Http/Controllers/Frontend/Api/Tutor/TutorController.php`
- [Job Offers API](https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Frontend/Api/JobOffer/JobofferController.php): `app/Http/Controllers/Frontend/Api/JobOffer/JobofferController.php`
- [Applications](https://github.com/tech-riad/tuitionhome/blob/main/app/Models/JobApplication.php): `app/Models/JobApplication.php`
- [Job Offers](https://github.com/tech-riad/tuitionhome/blob/main/app/Models/JobOffer.php): `app/Models/JobOffer.php`
- [Course Catalog](https://github.com/tech-riad/tuitionhome/blob/main/app/Models/Course.php): `app/Models/Course.php`
- [Location Catalog](https://github.com/tech-riad/tuitionhome/blob/main/app/Models/Location.php): `app/Models/Location.php`

### People and Access

- [Tutor Profiles](https://github.com/tech-riad/tuitionhome/blob/main/app/Models/Tutor.php): `app/Models/Tutor.php`
- [Parent Accounts](https://github.com/tech-riad/tuitionhome/blob/main/app/Models/Parents.php): `app/Models/Parents.php`
- [Staff Accounts](https://github.com/tech-riad/tuitionhome/blob/main/app/Models/User.php): `app/Models/User.php`
- [Authentication](https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Auth/LoginController.php): `app/Http/Controllers/Auth/LoginController.php`

### Staff Operations

- [Tutor Administration](https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Backend/Tutor/BackendTutorController.php): `app/Http/Controllers/Backend/Tutor/BackendTutorController.php`
- [Offer Administration](https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Backend/JobOffer/AllJobOfferController.php): `app/Http/Controllers/Backend/JobOffer/AllJobOfferController.php`
- [Payment Management](https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Backend/Payment/PaymentController.php): `app/Http/Controllers/Backend/Payment/PaymentController.php`
- [Reviews](https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/ReviewsController.php): `app/Http/Controllers/ReviewsController.php`
- [Study Configuration](https://github.com/tech-riad/tuitionhome/blob/main/app/Http/Controllers/Backend/Config/CoursesController.php): `app/Http/Controllers/Backend/Config/CoursesController.php`

### Platform Services

- [SMS Messaging](https://github.com/tech-riad/tuitionhome/blob/main/app/Models/Sms.php): `app/Models/Sms.php`
- [SMS Queue Job](https://github.com/tech-riad/tuitionhome/blob/main/app/Jobs/SendSmsJob.php): `app/Jobs/SendSmsJob.php`
- [bKash Payments](https://github.com/tech-riad/tuitionhome/blob/main/app/Services/BkashTokenService.php): `app/Services/BkashTokenService.php`
- [Cloud Storage](https://github.com/tech-riad/tuitionhome/blob/main/app/Services/CloudflareR2Service.php): `app/Services/CloudflareR2Service.php`
- [Review Records](https://github.com/tech-riad/tuitionhome/blob/main/app/Models/TutorReview.php): `app/Models/TutorReview.php`

### Other components

- **Marketplace User**

## Connections

- Marketplace User → Tutor API: uses
- Marketplace User → Job Offers API: browses offers
- Marketplace User → Authentication: signs in
- Tutor Administration → Tutor Profiles: manages (evidence: `app/Http/Controllers/Backend/Tutor/BackendTutorController.php`)
- Tutor Administration → Staff Accounts: references (evidence: `app/Http/Controllers/Backend/Tutor/BackendTutorController.php`)
- Offer Administration → Job Offers: manages (evidence: `app/Http/Controllers/Backend/JobOffer/AllJobOfferController.php`)
- Offer Administration → Applications: references (evidence: `app/Http/Controllers/Backend/JobOffer/AllJobOfferController.php`)
- Offer Administration → SMS Queue Job: dispatches (evidence: `app/Http/Controllers/Backend/JobOffer/AllJobOfferController.php`)
- Tutor Profiles → Applications: has applications (evidence: `app/Models/Tutor.php`)
- Tutor Profiles → Course Catalog: selects courses (evidence: `app/Models/Tutor.php`)
- Applications → Job Offers: belongs to offer (evidence: `app/Models/JobApplication.php`)
- Applications → Staff Accounts: references staff (evidence: `app/Models/JobApplication.php`)
- Reviews → Review Records: creates and queries (evidence: `app/Http/Controllers/ReviewsController.php`)
- Reviews → Tutor Profiles: validates tutor (evidence: `app/Http/Controllers/ReviewsController.php`)
- Study Configuration → Course Catalog: configures courses
- Tutor API → Tutor Profiles: uses profiles
- Job Offers API → Job Offers: uses offers
- Job Offers API → Applications: supports applications
- SMS Queue Job → SMS Messaging: sends messages
- Payment Management → bKash Payments: uses gateway
