How hind-sagar-biswas/hindbiswas works
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: web.php Web, API, and auth routes · Project.php Portfolio models · Kernel.php HTTP kernel · ProfileController.php Profile management
Components 19
HTTP entry and routing
- Public entry point
public/index.php - Laravel bootstrap
bootstrap/app.php - HTTP kernel · Applies sessions, CSRF, authentication, and maintenance middleware.
app/Http/Kernel.php - Web, API, and auth routes
routes/web.php - Exception handler
app/Exceptions/Handler.php
Public site and contact
- Public Blade pages · Landing and specialized personal pages.
resources/views/welcome.blade.php - Contact controller
app/Http/Controllers/ContactHindController.php - Contact models
app/Models/Contact.php
Portfolio API and data
- Portfolio data API
app/Http/Controllers/PortfolioDataApiController.php - Portfolio models · Projects, learnables, and their association.
app/Models/Project.php - Portfolio migrations · Defines language types, projects, and learnable-project joins.
database/migrations/2024_03_22_135742_create_projects_table.php
Identity and accounts
- Authentication flows · Registration, login, reset, confirmation, and verification.
- Profile management
app/Http/Controllers/ProfileController.php - Profile validation
app/Http/Requests/ProfileUpdateRequest.php - User model
app/Models/User.php - Account dashboard
resources/views/dashboard.blade.php
Persistence and frontend
- Database configuration
config/database.php - Initial data seeders · Seeds portfolio and contact data.
database/seeders/DatabaseSeeder.php - Vite asset pipeline · Compiles JavaScript and Sass assets for Blade pages.
vite.config.js
Connections 22
- 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