How aidilsaputrakirsan/fsti-itk works
1. This is a Laravel 12 content-driven website for FSTI ITK, built as a server-side app with an Inertia.js + Vue 3 frontend. The architecture is not a separate API/backend split; Laravel controllers return Inertia pages and data props directly to Vue page components.
2. The application has two main user-facing zones: a public website and an admin CMS. The public side serves faculty information, news/posts, achievements, programs, staff, alumni, PPID documents, integrity zone content, surveys, and other institutional pages. The admin side provides CRUD management for those same content domains.
3. Request flow starts in routes/web.php and routes/auth.php, then passes through custom middleware such as locale selection, secure headers, visitor tracking, and Inertia request handling. Controllers are organized by boundary: app/Http/Controllers/Public for the public site and app/Http/Controllers/Admin for back-office operations.
4. The frontend is organized as an Inertia app under resources/js. Vue layouts separate the three major experiences: PublicLayout, AdminLayout, and GuestLayout for auth screens. Shared UI lives in resources/js/Components, while each functional page has its own Inertia page component under resources/js/Pages/Public, resources/js/Pages/Admin, resources/js/Pages/Auth, and resources/js/Pages/Profile.
5. The admin subsystem is a classical CMS. It manages posts, categories, achievements, agendas, alumni, testimonials, announcements, community service, contacts, departments, faculty profiles, internal services, partners, PPID categories/documents, research, satisfaction surveys, scholarships, staff, student activities, study programs, survey categories, users, and integrity-zone data. Most of these modules have dedicated controllers, Eloquent models, migrations, seeders, and matching Vue admin pages.
6. The public subsystem is a curated presentation layer over the same content models. Public controllers expose read-only pages and listing/detail views, often with search, filtering, or grouping by category/program. The “Home” page combines summary stats, featured content, and recent updates, while profile pages present static institutional structure and leadership data.
7. Authentication and account management are built with Laravel Breeze-style flows: login, registration, email verification, password reset/confirmation, and profile editing. ProfileController and the auth controllers support normal user accounts, while User includes an is_superadmin field to distinguish privileged admin access.
8. Persistence is centered on Eloquent models and a relational database. The migrations show the main content schema: posts/categories, achievements, PPID docs/categories, zones of integrity, survey categories, contacts, faculty profiles, study programs, staff, activities, agendas, scholarships, alumni, partners, announcements, research, community service, visitors, internal services, departments, and testimonials.
9. File and document handling is part of the architecture. Uploaded media and seeded assets live in Laravel storage and public asset paths, including PDFs, images, and a CSV/JSON import set for seeded content. This is important because several content types are document- or media-heavy, especially PPID, announcements, alumni data, and research assets.
10. Cross-cutting concerns are handled in middleware and shared config rather than inside feature controllers. Locale switching supports Indonesian and English, secure headers harden responses, and visitor tracking persists site traffic data. The app also uses a shared frontend build pipeline via Vite, Tailwind, and TypeScript, with compiled assets served from public/build.
11. The repository includes seeded demo/content data for almost every domain, which means the architecture supports reproducible content bootstrapping. DatabaseSeeder and the module-specific seeders are part of the operational model, not just development convenience.
12. Testing is focused on Laravel feature tests for auth and profile behavior, with a smaller unit-test surface. That suggests the most critical automated checks are around authentication and user-facing flows rather than isolated domain services.
13. Overall, this is a monolithic Laravel CMS-style web application with a clear separation between public presentation, authenticated administration, and shared content persistence. For an architecture diagram, the key boundaries are browser/Inertia frontend, Laravel HTTP layer, Eloquent/database layer, filesystem assets, and the admin-vs-public content split.
Main entry points: Models Content models · web.php Web routes · Public Public controllers · Admin Admin controllers
Components 20
HTTP layer
Laravel routing, middleware, and controllers that assemble Inertia responses
- Web routes · Public site and admin entrypoints
routes/web.php - Auth routes · Login and account flows
routes/auth.php - Middleware stack · Locale, headers, visitor tracking, Inertia requests
app/Http/Middleware - Public controllers · Read-only public content pages
app/Http/Controllers/Public - Admin controllers · CMS CRUD and dashboard
app/Http/Controllers/Admin - Auth controllers · Breeze-style authentication flows
app/Http/Controllers/Auth - Profile controller · User profile editing and deletion
app/Http/Controllers/ProfileController.php
Inertia frontend
Vue layouts, shared components, and page components
- Public layouts · Public and guest shells
resources/js/Layouts - Admin layout · Back-office shell
resources/js/Layouts/AdminLayout.vue - Shared UI · Reusable cards, navigation, forms, and pagination
resources/js/Components - Public pages · Homepage, profiles, listings, and details
resources/js/Pages/Public - Admin pages · CMS screens for content management
resources/js/Pages/Admin - Auth pages · Login, registration, reset, verification
resources/js/Pages/Auth - Profile pages · Account settings screens
resources/js/Pages/Profile
Content model
Eloquent models, migrations, and seeders for site content
- Content models · Posts, programs, staff, PPID, surveys, and related content
app/Models - Core records · User and visitor tracking records
app/Models/User.php - Schema migrations · Relational schema for content domains and admin access
database/migrations - Seeders · Module seeders and bootstrap content
database/seeders
Runtime & ops
Auth, storage, assets, and testing support
- Media storage · Uploaded assets, PDFs, images, and seeded files
storage/app - Feature tests · Authentication and profile behavior checks
tests/Feature
Connections 22
- Web routes → Middleware stack: applies · Requests pass through locale, security, visitor, and Inertia middleware
- Auth routes → Auth controllers: dispatches to · Auth endpoints map to session and verification controllers
- Web routes → Public controllers: dispatches to · Public pages are served through read-only controllers
- Web routes → Admin controllers: dispatches to · Admin CRUD routes resolve to back-office controllers
- Web routes → Profile controller: dispatches to · Profile settings route to account controller
- Public controllers → Public pages: returns · Controllers compose Inertia props for public Vue pages
- Admin controllers → Admin pages: returns · Controllers compose Inertia props for CMS Vue pages
- Auth controllers → Auth pages: returns · Auth flows render Breeze-style screens
- Profile controller → Profile pages: returns · Profile actions render account settings pages
- Public pages → Public layouts: uses · Public Inertia pages are wrapped by public and guest layouts
- Admin pages → Admin layout: uses · Admin screens are wrapped by the back-office layout
- Public pages → Shared UI: composes · Lists, cards, nav, pagination, and forms reuse shared UI
- Admin pages → Shared UI: composes · CRUD screens reuse the same shared component set
- Content models → Schema migrations: defined by · Content schema is created and evolved through migrations
- Content models → Seeders: bootstrapped by · Modules are populated by domain seeders
- Seeders → Media storage: loads assets from · Seeder content includes PDFs, images, CSV, and JSON assets
- Public controllers → Content models: reads · Public site queries the shared content models
- Admin controllers → Content models: writes · Admin CMS manages the same content records
- Content models → Media storage: stores media in · Document-heavy domains rely on stored uploads and public assets
- Core records → Middleware stack: supports · Visitor tracking and user context rely on core records
- Feature tests → Auth controllers: covers · Feature tests focus on auth and account flows
- Feature tests → Profile controller: covers · Profile behavior is verified at the HTTP layer