tenanted.dev v0.1.5
Documentation

laravel-tenanted guides

Six guides, from the one-line setup to production deployment.

01

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.

02

Tenant 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.

03

Models, Migrations & Central Data

With laravel-tenanted, every standard model is tenanted by default — and central (shared) models simply name their connection once.

04

Queues, 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.

05

Inertia + 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.

06

Deployment 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.