laravel-tenanted guides
Six guides, from the one-line setup to production deployment.
Getting Started & Architecture
laravel-tenanted brings database-per-tenant multi-tenancy to laravel-rust without forcing custom query wrappers, global locks, or process-per-tenant compromises.
02Tenant Resolution & Routing
laravel-tenanted supports subdomain, HTTP header, and custom closure resolution — plus first-class Tenant / Option controller extractors, Route Model Binding, and per-tenant validation.
03Models, Migrations & Central Data
With laravel-tenanted, every standard model is tenanted by default — and central (shared) models simply name their connection once.
04Queues, Cache, Storage, Events & Testing
Database isolation is only half of safe multi-tenancy — background jobs, caches, file storage, structured logs, and tests must stay isolated too. laravel-tenanted wires directly into laravel-rust's native subsystems for all five.
05Inertia + React Starter Kit: Org Switcher & Super-Admin Tenancy
If you're building with the laravel-rust + Inertia React starter kit (laravel-rust-shadcn), you can add full database-per-tenant multi-tenancy — complete with a sidebar Organization Switcher and Super-Admin org switching — in minutes using laravel-tenanted's built-in .session("active_org") resolver.
06Deployment Guide
laravel-tenanted is designed to deploy cleanly across every Rust hosting topology — from a single $5 VPS running SQLite-per-tenant, to Fly.io / Kamal containers with persistent volumes, to stateless Laravel Cloud / Kubernetes pods running PostgreSQL or LiteVault S3/R2 SQLite.