PHPackages                             binarcode/laravel-tenantable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. binarcode/laravel-tenantable

ActiveLibrary[Framework](/categories/framework)

binarcode/laravel-tenantable
============================

Just another multi tenant support package for Laravel.

2.6.0(1y ago)4110.6k↓24.1%1MITPHPPHP ^8.1|^8.2CI passing

Since Jul 26Pushed 1y ago3 watchersCompare

[ Source](https://github.com/BinarCode/laravel-tenantable)[ Packagist](https://packagist.org/packages/binarcode/laravel-tenantable)[ Docs](https://github.com/binarcode/laravel-tenantable)[ RSS](/packages/binarcode-laravel-tenantable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (19)Used By (0)

Laravel Tenantable
==================

[](#laravel-tenantable)

[![](./docs/.vuepress/public/logo.png)](./docs/.vuepress/public/logo.png)

[![Total Downloads](https://camo.githubusercontent.com/419cd884b3994ef37b7c59693a53fb34d6f3ff23fc43ae168e0fc6f0f2c6216a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62696e6172636f64652f6c61726176656c2d74656e616e7461626c65)](https://packagist.org/packages/binarcode/laravel-tenantable)[![Latest Stable Version](https://camo.githubusercontent.com/c33fed8a2f63abc2cc5e4c09b541c29dda3c985758bac50925f17c0afe8ac33a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62696e6172636f64652f6c61726176656c2d74656e616e7461626c65)](https://packagist.org/packages/binarcode/laravel-tenantable)[![License](https://camo.githubusercontent.com/868630324ce0aad689da6b9a25ac9ccc103807d5be338379800919209e6f24bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f62696e6172636f64652f6c61726176656c2d74656e616e7461626c65)](https://packagist.org/packages/binarcode/laravel-tenantable)

Just another multi tenant support package for Laravel. Heavily inspired from [Mohamed Said](https://github.com/themsaid) multitenancy videos.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require binarcode/laravel-tenantable
```

Now lets setup it:

```
php artisan tenantable:setup
```

Usage
-----

[](#usage)

Let's say you have the `App\Models\Organization` as a tenant model.

This model has to implement the `BinarCode\Tenantable\Tenant\Contracts\Tenant` contract.

If you want to benefit of all the methods the contract as you to implement, just extends the `BinarCode\Tenantable\Models\Tenant` class, and you don't have to add anything else in your model.

Now I'll take it step by step, since I was very confused when I implemented my firt multitenancy application.

### Migrations

[](#migrations)

You need 2 types of migrations, `master` and `tenant`. The migrations in the `app\database\migrations` directory, are used for `tenant`. If you have to add migrations for the `master` use `app\database\migrations\master` directory.

... [See oficial documenation](https://tenantable.binarcode.com/docs/1.0/quickstart.html)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

Credits
-------

[](#credits-1)

The code of this package is based on the code shown in [the Multitenancy in Laravel series](https://www.youtube.com/watch?v=592EgykFOz4) by Mohamed Said

- [Eduard Lupacescu](https://github.com/binaryk)
- [All Contributors](../../contributors)

Alternatives
------------

[](#alternatives)

- [spatie/laravel-multitenancy](https://github.com/spatie/laravel-multitenancy)
- [tenancy/tenancy](https://tenancy.dev)
- [stancl/tenancy](https://tenancyforlaravel.com)
- [gecche/laravel-multidomain](https://github.com/gecche/laravel-multidomain)
- [romegadigital/multitenancy](https://github.com/romegasoftware/multitenancy)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance44

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 76.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~99 days

Recently: every ~150 days

Total

18

Last Release

440d ago

Major Versions

0.0.3 → 1.0.02020-08-31

1.1.2 → 2.0.02021-06-04

PHP version history (6 changes)0.0.1PHP ^7.4

1.1.2PHP ^7.4|^8.0

2.0.0PHP ^8.0

2.2.0PHP ^8.0|^8.1

2.4.1PHP ^8.1

2.6.0PHP ^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/dfbb03bb93526135d948c1232c28938180a944e65362263dda08545afa3fee6d?d=identicon)[binaryk](/maintainers/binaryk)

---

Top Contributors

[![binaryk](https://avatars.githubusercontent.com/u/6833714?v=4)](https://github.com/binaryk "binaryk (97 commits)")[![arthurkirkosa](https://avatars.githubusercontent.com/u/1099791?v=4)](https://github.com/arthurkirkosa "arthurkirkosa (24 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")

---

Tags

laravelphpmultitenancylaravelbinarcodelaravel-tenantable

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/binarcode-laravel-tenantable/health.svg)

```
[![Health](https://phpackages.com/badges/binarcode-laravel-tenantable/health.svg)](https://phpackages.com/packages/binarcode-laravel-tenantable)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M674](/packages/laravel-socialite)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k84.2M225](/packages/laravel-horizon)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[laravel/sail

Docker files for running a basic Laravel application.

1.9k186.9M1.0k](/packages/laravel-sail)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k49.4M479](/packages/laravel-scout)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
