Platform & Data Systems
Koperasi Serba Usaha
Koperasi
- Year
- 2025
- Role
- Full-stack developer
Multi-tenant platform for an Indonesian credit union: member savings, accounts, and a superadmin overseeing several cooperatives.
The problem
Credit unions carry rules the average CRUD app has no concept of. Simpanan Pokok, for example, is mandatory on joining, locked while the member stays, and only refunded on resignation. Multi-tenant data isolation has to be airtight or member balances leak between cooperatives.
What I did
- Built a `BelongsToKoperasi` trait so every tenant-scoped model resolves its cooperative in one place instead of ad-hoc query filters.
- Implemented member savings including the mandatory Simpanan Pokok lifecycle and its lock/refund rules.
- Added a `LogsActivity` trait for the audit trail the sector requires.
- Structured superadmin and cooperative-admin views so one operator can oversee multiple cooperatives.
Impact
- Multi-tenant
- scoping via one shared trait
- Superadmin
- oversight across cooperatives
- Audit
- trail on every activity
Links
Stack
- Laravel 12
- PHP
- MySQL