The problem
EduSync is a personal project I'm using to learn how to design a multi-tenant SaaS properly. I picked colleges as the domain: people, skill tests, training, placements and a knowledge hub. Each college gets its own subdomain and staff roles, and its data must stay invisible to every other college.
What I built
So far I've built the foundation, not the college features. The roadmap puts those in later phases, and the Institution panel is still empty.
A Dockerized stack that runs over HTTPS on local subdomains: Octane on Swoole, Horizon, a scheduler, Reverb, PostgreSQL, Valkey and SeaweedFS behind Traefik.
A Platform panel in Filament with required MFA, backed by a separate platform-user guard.
A tenant context that holds the current college per request and per job.
Fixed roles mapped to permissions, with a test that checks the matrix.
Append-only audit and security event tables.
File storage with upload checks and a per-tenant quota.
Planned, not built yet: tenant onboarding, the staff panel, invitations, the Reverb channels, every college module and the Angular student app on a /v1 API.
The hard part
Tenant isolation. All colleges share one database, so a forgotten filter would leak data. Every tenant-owned model gets a global scope that reads the tenant context when the query runs. If no tenant is set, the query throws instead of returning rows. Octane keeps workers alive between requests, so the context lives in a scoped container instance, never a static property.
The database backs this up. Child tables use composite foreign keys on (tenant_id, id), so a row can't point at another college's row. Architecture tests also fail the build if code leaves the tenant scope outside a reviewed list.
The audit log is the second problem. A PL/pgSQL trigger refuses every update, delete and truncate on those tables, even for the table owner.
Result
Nothing is deployed and it has no users. The foundation is covered by Pest feature, unit, architecture and browser tests. The feature phases are still ahead of me.
Stack
Laravel 13 and Filament 5 for the app and panels. Laravel Octane (Swoole) for long-lived workers, Laravel Horizon for queues, and Laravel Reverb for WebSockets. PostgreSQL holds the data. Valkey handles cache and queues, SeaweedFS provides S3 storage, and Traefik terminates TLS. Everything runs in Docker through a Makefile, and Pest runs the tests.