stancl/tenancy

Automatic multi-tenancy for your Laravel application.
9,578,857 4,400
Install
composer require stancl/tenancy
Latest Version:v3.10.1
PHP:^8.4
License:MIT
Last Updated:Sep 1, 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
hyn/multi-tenant

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

1,233,392 2,604
somnambulist/laravel-doctrine-tenancy

A multi-tenancy implementation that uses Laravel and Doctrine.

2,792 16