Multi‑Tenancy
Model Scoping
- All queries scoped to
tenant_idvia global scopes/traits - Tenants resolved from subdomain middleware
Routing
central.phpfor marketing, signup, admintenant.phpfor app routes bound to tenant context
Data Separation
- Single database with tenant_id foreign keys
- Background jobs include tenant context
- File paths namespaced by tenant