stancl/tenancy

Automatic multi-tenancy for your Laravel application.
10,077,434 4,410
Install
composer require stancl/tenancy
Latest Version:v3.10.1
PHP:^8.4
License:MIT
Last Updated:Sep 17, 2026
Links: GitHub  ·  Packagist
Maintainer: stancl

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
somnambulist/laravel-doctrine-tenancy

A multi-tenancy implementation that uses Laravel and Doctrine.

2,792 16
lukapeharda/multitenancy

A single DB multitenancy package for Laravel based on subdomain routing.

17 1
hyn/multi-tenant

Run multiple websites using the same laravel installation while keeping tenant s...

1,254,331 2,606