# hind-sagar-biswas/hindbiswas architecture

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

- Interactive diagram: https://gitdiagram.com/hind-sagar-biswas/hindbiswas
- Repository: https://github.com/hind-sagar-biswas/hindbiswas

## Overview

#### Purpose and entry points
This is a Laravel PHP portfolio/personal-site application with public Blade pages, a small portfolio-data API, contact functionality, and authenticated user/profile management. HTTP enters through `public/index.php`, boots via `bootstrap/app.php`, and is dispatched by `routes/web.php`, `routes/api.php`, and `routes/auth.php`.

#### HTTP application boundary
Laravel’s HTTP kernel applies global middleware, sessions, cookies, CSRF protection, authentication, and maintenance handling before controllers execute. The principal boundary is `app/Http/Kernel.php`; standard exception conversion is centralized in `app/Exceptions/Handler.php`. Browser routes produce views, while API routes are handled separately.

#### Public portfolio and contact experience
Public content is rendered as Blade templates, primarily the landing page and specialized personal pages at `resources/views/welcome.blade.php`, `resources/views/myqueen.blade.php`, and `resources/views/edit.blade.php`. Contact submission/management is handled by `app/Http/Controllers/ContactHindController.php` and persisted through `app/Models/Contact.php` and `app/Models/ContactHind.php`.

#### Portfolio domain and API
Portfolio content is modeled as language categories, learnable items, skills, projects, and a learnable-project association. The API-facing controller is `app/Http/Controllers/PortfolioDataApiController.php`; its data model boundary includes `app/Models/Project.php`, `app/Models/Learnable.php`, and `app/Models/LearnableProject.php`. Database schema establishes these entities and joins in `database/migrations/2024_03_20_212635_create_language_types_table.php`, `database/migrations/2024_03_22_135742_create_projects_table.php`, and `database/migrations/2024_04_12_215042_create_learnable_projects_table.php`.

#### Identity and protected account flows
Laravel Breeze-style authentication supports registration, login/logout, password reset/confirmation, and email verification under `app/Http/Controllers/Auth/`. Profile updates are isolated in `app/Http/Controllers/ProfileController.php` with validation in `app/Http/Requests/ProfileUpdateRequest.php`; identity persistence is `app/Models/User.php`. Auth endpoints live in `routes/auth.php` and authenticated UI uses `resources/views/dashboard.blade.php`.

#### Persistence and lifecycle data
Eloquent models represent the application’s persistence boundary, configured through `config/database.php`. Migrations define users, password-reset tokens, personal access tokens, portfolio entities, and contacts; seeders provide initial portfolio/contact data from `database/seeders/DatabaseSeeder.php`, `database/seeders/ProjectSeeder.php`, and `database/seeders/LearnableProjectSeeder.php`. Enums constrain selected domain values in `app/Enums/ProjectStatus.php` and `app/Enums/LearnableGroup.php`.

#### Front-end and runtime infrastructure
Blade is server-rendered; Vite compiles CSS/Sass and JavaScript assets from `resources/js/app.js`, `resources/js/main.js`, and `resources/sass/main.scss`, configured by `vite.config.js`. The runtime is PHP/Laravel with Composer, plus Node/Bun frontend dependencies. Laravel service integrations are environment/config driven through `config/mail.php`, `config/queue.php`, `config/cache.php`, `config/filesystems.php`, and `config/sanctum.php`; no specific external provider is identifiable from the supplied tree.

Main entry points: [`routes/web.php`](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/routes/web.php) (Web, API, and auth routes), [`app/Models/Project.php`](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Models/Project.php) (Portfolio models), [`app/Http/Kernel.php`](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Http/Kernel.php) (HTTP kernel), [`app/Http/Controllers/ProfileController.php`](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Http/Controllers/ProfileController.php) (Profile management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_http["HTTP entry and routing"]
  node_index["Public entry point<br/>PHP entry<br/>[index.php]"]
  node_bootstrap["Laravel bootstrap<br/>application bootstrap<br/>[app.php]"]
  node_kernel["HTTP kernel<br/>middleware boundary<br/>[Kernel.php]"]
  node_routes["Web, API, and auth routes<br/>route definitions<br/>[web.php]"]
  node_exceptions["Exception handler<br/>error boundary<br/>[Handler.php]"]
end

subgraph group_public["Public site and contact"]
  node_public_views["Public Blade pages<br/>server-rendered views<br/>[welcome.blade.php]"]
  node_contact_controller["Contact controller<br/>HTTP controller"]
  node_contact_models[("Contact models<br/>Eloquent models<br/>[Contact.php]")]
end

subgraph group_portfolio["Portfolio API and data"]
  node_portfolio_api["Portfolio data API<br/>API controller"]
  node_portfolio_models[("Portfolio models<br/>Eloquent models<br/>[Project.php]")]
  node_portfolio_schema["Portfolio migrations<br/>schema definitions"]
end

subgraph group_identity["Identity and accounts"]
  node_auth_controllers["Authentication flows<br/>auth controllers"]
  node_profile_controller["Profile management<br/>protected controller"]
  node_profile_request["Profile validation<br/>form request"]
  node_user[("User model<br/>Eloquent identity model<br/>[User.php]")]
  node_dashboard["Account dashboard<br/>authenticated Blade view"]
end

subgraph group_persistence["Persistence and frontend"]
  node_database[("Database configuration<br/>persistence configuration<br/>[database.php]")]
  node_seeders["Initial data seeders<br/>data initialization<br/>[DatabaseSeeder.php]"]
  node_assets{{"Vite asset pipeline<br/>frontend build<br/>[vite.config.js]"}}
end

node_index -->|"boots"| node_bootstrap
node_bootstrap -->|"creates"| node_kernel
node_kernel -->|"dispatches"| node_routes
node_kernel -.->|"converts failures via"| node_exceptions
node_routes -->|"serves browser pages"| node_public_views
node_routes -->|"contact endpoints"| node_contact_controller
node_contact_controller -->|"persists contacts"| node_contact_models
node_routes -->|"API endpoints"| node_portfolio_api
node_portfolio_api -->|"queries"| node_portfolio_models
node_portfolio_models -.->|"mapped by"| node_portfolio_schema
node_routes -->|"auth endpoints"| node_auth_controllers
node_routes -->|"protected profile routes"| node_profile_controller
node_profile_controller -->|"validates with"| node_profile_request
node_auth_controllers -->|"manages identity"| node_user
node_profile_controller -->|"updates"| node_user
node_routes -->|"renders authenticated UI"| node_dashboard
node_user -->|"persists through"| node_database
node_contact_models -->|"persists through"| node_database
node_portfolio_models -->|"persists through"| node_database
node_seeders -->|"initializes"| node_portfolio_models
node_assets -.->|"builds assets for"| node_public_views
node_assets -.->|"builds assets for"| node_dashboard

click node_index "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/public/index.php"
click node_bootstrap "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/bootstrap/app.php"
click node_kernel "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Http/Kernel.php"
click node_routes "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/routes/web.php"
click node_exceptions "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Exceptions/Handler.php"
click node_public_views "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/resources/views/welcome.blade.php"
click node_contact_controller "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Http/Controllers/ContactHindController.php"
click node_contact_models "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Models/Contact.php"
click node_portfolio_api "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Http/Controllers/PortfolioDataApiController.php"
click node_portfolio_models "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Models/Project.php"
click node_portfolio_schema "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/database/migrations/2024_03_22_135742_create_projects_table.php"
click node_profile_controller "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Http/Controllers/ProfileController.php"
click node_profile_request "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Http/Requests/ProfileUpdateRequest.php"
click node_user "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Models/User.php"
click node_dashboard "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/resources/views/dashboard.blade.php"
click node_database "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/config/database.php"
click node_seeders "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/database/seeders/DatabaseSeeder.php"
click node_assets "https://github.com/hind-sagar-biswas/hindbiswas/blob/main/vite.config.js"

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_index,node_bootstrap,node_kernel,node_routes,node_exceptions toneBlue
class node_public_views,node_contact_controller,node_contact_models toneAmber
class node_portfolio_api,node_portfolio_models,node_portfolio_schema toneMint
class node_auth_controllers,node_profile_controller,node_profile_request,node_user,node_dashboard toneRose
class node_database,node_seeders,node_assets toneIndigo
```

## Components

### HTTP entry and routing

- [Public entry point](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/public/index.php): PHP entry · `public/index.php`
- [Laravel bootstrap](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/bootstrap/app.php): application bootstrap · `bootstrap/app.php`
- [HTTP kernel](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Http/Kernel.php): middleware boundary · Applies sessions, CSRF, authentication, and maintenance middleware. · `app/Http/Kernel.php`
- [Web, API, and auth routes](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/routes/web.php): route definitions · `routes/web.php`
- [Exception handler](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Exceptions/Handler.php): error boundary · `app/Exceptions/Handler.php`

### Public site and contact

- [Public Blade pages](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/resources/views/welcome.blade.php): server-rendered views · Landing and specialized personal pages. · `resources/views/welcome.blade.php`
- [Contact controller](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Http/Controllers/ContactHindController.php): HTTP controller · `app/Http/Controllers/ContactHindController.php`
- [Contact models](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Models/Contact.php): Eloquent models · `app/Models/Contact.php`

### Portfolio API and data

- [Portfolio data API](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Http/Controllers/PortfolioDataApiController.php): API controller · `app/Http/Controllers/PortfolioDataApiController.php`
- [Portfolio models](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Models/Project.php): Eloquent models · Projects, learnables, and their association. · `app/Models/Project.php`
- [Portfolio migrations](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/database/migrations/2024_03_22_135742_create_projects_table.php): schema definitions · Defines language types, projects, and learnable-project joins. · `database/migrations/2024_03_22_135742_create_projects_table.php`

### Identity and accounts

- **Authentication flows**: auth controllers · Registration, login, reset, confirmation, and verification.
- [Profile management](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Http/Controllers/ProfileController.php): protected controller · `app/Http/Controllers/ProfileController.php`
- [Profile validation](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Http/Requests/ProfileUpdateRequest.php): form request · `app/Http/Requests/ProfileUpdateRequest.php`
- [User model](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/app/Models/User.php): Eloquent identity model · `app/Models/User.php`
- [Account dashboard](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/resources/views/dashboard.blade.php): authenticated Blade view · `resources/views/dashboard.blade.php`

### Persistence and frontend

- [Database configuration](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/config/database.php): persistence configuration · `config/database.php`
- [Initial data seeders](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/database/seeders/DatabaseSeeder.php): data initialization · Seeds portfolio and contact data. · `database/seeders/DatabaseSeeder.php`
- [Vite asset pipeline](https://github.com/hind-sagar-biswas/hindbiswas/blob/main/vite.config.js): frontend build · Compiles JavaScript and Sass assets for Blade pages. · `vite.config.js`

## Connections

- Public entry point → Laravel bootstrap: boots
- Laravel bootstrap → HTTP kernel: creates
- HTTP kernel → Web, API, and auth routes: dispatches
- HTTP kernel → Exception handler: converts failures via
- Web, API, and auth routes → Public Blade pages: serves browser pages
- Web, API, and auth routes → Contact controller: contact endpoints
- Contact controller → Contact models: persists contacts
- Web, API, and auth routes → Portfolio data API: API endpoints
- Portfolio data API → Portfolio models: queries
- Portfolio models → Portfolio migrations: mapped by
- Web, API, and auth routes → Authentication flows: auth endpoints
- Web, API, and auth routes → Profile management: protected profile routes
- Profile management → Profile validation: validates with
- Authentication flows → User model: manages identity
- Profile management → User model: updates
- Web, API, and auth routes → Account dashboard: renders authenticated UI
- User model → Database configuration: persists through
- Contact models → Database configuration: persists through
- Portfolio models → Database configuration: persists through
- Initial data seeders → Portfolio models: initializes
- Vite asset pipeline → Public Blade pages: builds assets for
- Vite asset pipeline → Account dashboard: builds assets for
