PHPackages                             mamdouhkhaled/tenancy-modules - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mamdouhkhaled/tenancy-modules

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mamdouhkhaled/tenancy-modules
=============================

Connect Laravel Tenancy with Laravel Modules

v2.0.0(5mo ago)51242MITPHP

Since Jun 11Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/MamdouhKhaled/tenancy-modules)[ Packagist](https://packagist.org/packages/mamdouhkhaled/tenancy-modules)[ RSS](/packages/mamdouhkhaled-tenancy-modules/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (6)Used By (0)

How to Install
--------------

[](#how-to-install)

- Create laravel app if not already installed
- packages you Are needed to install
    - [Laravel Tanancy](https://tenancyforlaravel.com/)
    - [Laravel Modules](https://nwidart.com/laravel-modules/v6/introduction)
    - [Laravel Tenancy Modules](https://github.com/MamdouhKhaled/tenancy-modules)

```
composer require mamdouhkhaled/tenancy-modules

```

Create Table for manage Modules with Tenancy

```
php artisan tenancy:install // fresh install only
php artisan migrate

```

### Published Configuration

[](#published-configuration)

```
php artisan vendor:publish --tag=tenancymodules

```

### Enable / Disable modules Commands

[](#enable--disable-modules-commands)

```
php artisan module:tenant-enable --tenant={{tenant-id}} // enable all modules for this tenant
php artisan module:tenant-enable {{module_name}} --tenant={{tenant-id}} // enable `module_name` modules for this tenant

php artisan module:tenant-disable --tenant={{tenant-id}} // enable all modules for this tenant
php artisan module:tenant-disable {{module_name}} --tenant={{tenant-id}} // enable `module_name` modules for this tenant

```

### Migration / rollback Commands

[](#migration--rollback-commands)

```
php artisan module:tenant-migrate --tenants={{tenant-id}}// tenant is comma separated
php artisan module:tenant-migrate --tenants={{tenant-id}} {{module}}

php artisan module:tenant-migrate-rollback --tenants={{tenant-id}}
php artisan module:tenant-migrate-rollback --tenants={{tenant-id}} {{module}}

```

### Seed Commands

[](#seed-commands)

this Command Run {module}TenantDatabaseSeeder

```
php artisan module:tenant-seed --tenants={{tenant-id}}// tenant is comma separated
php artisan module:tenant-seed --tenants={{tenant-id}} {{module}}

```

### Route

[](#route)

```
as tenant way

```

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

[](#contributing)

Thank you for considering contributing to the Laravel Tenancy Modules Package!

License
-------

[](#license)

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance71

Regular maintenance activity

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~225 days

Total

5

Last Release

161d ago

Major Versions

v1.0.3 → v2.0.02025-11-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f95946de6f249075582d419dce2427dd257c41f7a67d34817109e69454a480d?d=identicon)[Mamdouh](/maintainers/Mamdouh)

---

Top Contributors

[![MamdouhKhaled](https://avatars.githubusercontent.com/u/17896030?v=4)](https://github.com/MamdouhKhaled "MamdouhKhaled (9 commits)")

### Embed Badge

![Health badge](/badges/mamdouhkhaled-tenancy-modules/health.svg)

```
[![Health](https://phpackages.com/badges/mamdouhkhaled-tenancy-modules/health.svg)](https://phpackages.com/packages/mamdouhkhaled-tenancy-modules)
```

PHPackages © 2026

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