# Tenancy for Laravel

Run multiple websites using the same Laravel installation while keeping tenant specific data separated for fully independent multi-domain setups.

Repository: https://github.com/tenancy/tenancy
Canonical: https://ross.abutalabs.com/products/tenancy-for-laravel
Homepage: https://tenancy.dev
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, tenancy, multi-tenant, saas, php, hacktoberfest
Last push: 2026-07-01T02:12:37+00:00
Link (homepage): https://tenancy.dev

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 71, longevity 100
- inputs: {"age_days": 3163, "days_push": 64, "days_rel": 114, "gap_med": 66.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1330, forks 93 (observed 2026-08-28T04:04:24.179671+00:00)

## What it is
A Laravel package that enables running multiple websites (tenants) from a single codebase, with per-tenant separation of databases, assets, and configuration. It supports multi-domain setups and flexible database isolation strategies such as separate tenant databases or table prefixes.

## Use cases
- build a multi-tenant SaaS on Laravel
- host multiple client websites from one Laravel codebase
- serve multiple domains with tenant-specific data separation
- isolate tenant databases in a Laravel app
- override routes and config per tenant
- convert an existing Laravel app into a multi-tenant platform

## When to choose
- you're building a SaaS or agency platform on Laravel needing tenant isolation
- you want per-tenant databases, prefixes, or custom tenancy logic via events
- you need multi-domain hosting from a single deployment

## When to avoid
- your app is single-tenant and doesn't need tenant separation
- you use a framework other than Laravel
- you need tenancy for a non-PHP stack

## Facets
- artifact type: library
- maturity: active
- function: middleware, routing, database, configuration-management
- domain: web-development, backend, databases
- platform: php, self-hosted
- tags: multi-tenancy, saas, multi-domain, laravel-package, tenant-isolation, laravel, web-server

## Member repositories
- tenancy/tenancy (main) score 85
- tenancy/multi-tenant (mirror) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:24.179671+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:21:03.192971+00:00, confidence not recorded.
  - readme: https://github.com/tenancy/tenancy (fetched 2026-08-28T04:04:24.179671+00:00, sha 375aeb8e2bb0)
  - homepage: https://tenancy.dev (fetched 2026-08-29T10:03:58.297220+00:00, sha 5eb75a08478e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
