spatie/laravel-multitenancy
Make your Laravel app usable by multiple tenants observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 96
- Release rhythm 84
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 55
- age_days: 2317
- days_rel: 26
- days_push: 26
- n_releases_24m: 12
Adoption not part of the score
1364 stars · 182 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
An unopinionated Laravel package that makes a Laravel application tenant-aware, supporting single- or multi-database multitenancy. It handles tenant resolution per request, tenant switching tasks, tenant-aware queued jobs, and per-tenant artisan commands.
Use cases
- add multitenancy to a Laravel SaaS app
- serve multiple customers from one Laravel codebase
- run artisan commands for every tenant
- make queued jobs tenant aware
- switch database connections per tenant
- resolve the current tenant from the request
When to choose
- you want a minimal, unopinionated multitenancy foundation you can customize
- your Laravel app needs single-database or multi-database tenancy
- you want tenant-aware queues and artisan commands out of the box
When to avoid
- you want a batteries-included SaaS boilerplate with billing and auth
- you are not using Laravel or PHP
- you need fully automatic row-level tenant scoping with no configuration
Facets
library · maturity stable
middleware database orm configuration-management web-development backend developer-tools php self-hosted laravel multitenancy saas tenant-isolation eloquent spatie web-server
10 sources
- readme: https://github.com/spatie/laravel-multitenancy · fetched 2026-08-28 · abc86e617f00
- homepage: https://spatie.be/docs/laravel-multitenancy · fetched 2026-08-29 · cf3695f419a4
- site_page: https://spatie.be/docs · fetched 2026-08-29 · 08e024d86d95
- site_page: https://spatie.be/about-us · fetched 2026-08-29 · d3cb88e4b34c
- site_page: https://spatie.be/docs/laravel-multitenancy/v4 · fetched 2026-08-29 · a4f9abec24cb
- site_page: https://spatie.be/docs/laravel-multitenancy/v3 · fetched 2026-08-29 · 03e370cd8dc7
- site_page: https://spatie.be/docs/laravel-multitenancy/v2 · fetched 2026-08-29 · 5e56b6951bd3
- site_page: https://spatie.be/docs/laravel-multitenancy/v1 · fetched 2026-08-29 · 8c868b5d983d
- site_page: https://spatie.be/docs/laravel-multitenancy/v4/upgrade-guide · fetched 2026-08-29 · c7f561afcde7
- site_page: https://spatie.be/docs/laravel-multitenancy/v4/support-us · fetched 2026-08-29 · 873f8491b629
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/laravel-multitenancy | main | 93 |
For agents
markdown · JSON · MCP: product_card(name="spatie/laravel-multitenancy")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem