New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

stancl/tenancy

Automatic multi-tenancy for your Laravel application.
11,759,008 4,427
Install
composer require stancl/tenancy
Latest Version:v3.10.1
PHP:^8.0
Laravel:10 – 13
Older releases:5 – 9
License:MIT
Last Updated:Oct 31, 2026
Links: GitHub  ·  Packagist
Maintainer: stancl

Tenancy for Laravel logo

Laravel 11.x Latest Stable Version GitHub Actions CI status Donate

Tenancy for Laravel — stancl/tenancy

Automatic multi-tenancy for your Laravel app.

You won't have to change a thing in your application's code.

  • :heavy_check_mark: No model traits to change database connection
  • :heavy_check_mark: No replacing of Laravel classes (Cache, Storage, ...) with tenancy-aware classes
  • :heavy_check_mark: Built-in tenant identification based on hostname (including second level domains)

Documentation

Documentation can be found here: https://v4.tenancyforlaravel.com

Need help?

Credits

Related Packages

hotash/octane-tenancy

Automatic multi-tenancy for your Laravel application.

19 0
hipsterjazzbo/landlord

A simple, single database multi-tenancy solution for Laravel 5.2+

273,413 607
eloverde-sistemas/landlord

A simple, single database multi-tenancy solution for Laravel 5.2+

61,955 0
betalabs/landlord

A simple, single database multi-tenancy solution for Laravel 5.2+

21,935 3

Version History

Version Released PHP Laravel License
v3.10.1 ^8.0 ^10.0|^11.0|^12.0|^13.0 MIT
v3.10.0 ^8.0 ^10.0|^11.0|^12.0|^13.0 MIT
v3.9.1 ^8.0 ^10.0|^11.0|^12.0 MIT
v3.9.0 ^8.0 ^10.0|^11.0|^12.0 MIT
v3.8.5 ^8.0 ^9.0|^10.0|^11.0 MIT
Pre-releases (3)
Version Released Laravel License
v3.0.0-rc1 ^6.0|^7.0 MIT
v2.0.0-rc2 ^6.0 MIT
v2.0.0-rc1 ^6.0 MIT