PHPackages                             envive/tenant-migrate - 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. [Admin Panels](/categories/admin)
4. /
5. envive/tenant-migrate

ActiveLibrary[Admin Panels](/categories/admin)

envive/tenant-migrate
=====================

laravel migrate command tool for multi-tenant pattern

1.0.2(7y ago)158MITPHP

Since Sep 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/loadmemo/tenant-migrate)[ Packagist](https://packagist.org/packages/envive/tenant-migrate)[ RSS](/packages/envive-tenant-migrate/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (5)Used By (0)

Tenant-migrate
==============

[](#tenant-migrate)

Add multi-tenant support for Laravel migrate command

Installation
============

[](#installation)

```
composer require envive/tenant-migrate
```

Automatic service registration
------------------------------

[](#automatic-service-registration)

Using [auto discovery](https://medium.com/@taylorotwell/package-auto-discovery-in-laravel-5-5-ea9e3ab20518), the tenancy package will be auto detected by Laravel automatically.

### Manual service registration

[](#manual-service-registration)

In case you want to disable webserver integration or prefer manual integration, set the `dont-discover` in your application composer.json, like so:

```
{
    "extra": {
        "laravel": {
            "dont-discover": "envive/tenant-migrate"
        }
    }
}
```

If you disable auto discovery you are able to configure the providers by yourself.

Register the service provider in your `config/app.php`:

```
    'providers' => [
        // [..]
        // Tenant migrate.
         Envive\TenantMigrate\TenantMigrateServiceProvider::class,
    ],
```

Deploy configuration
--------------------

[](#deploy-configuration)

Publish the configuration file so you can modify it to your needs:

```
 php artisan vendor:publish --provider=Envive\\TenantMigrate\\TenantMigrateServiceProvider
```

Open the `config/tenant.php` file and modify to your needs. Put your tenant database connection information into the `connection` and add `tenant_prefix` if needed.

This package will add seven commands below into your artisan list. You can get more information with option `help`.

```
  tenant:migrate           Run the database migrations with multi-tenant support
  tenant:migrate:fresh     Drop all tables and re-run all migrations with multi-tenant support
  tenant:migrate:install   Create the migration repository with multi-tenant support
  tenant:migrate:refresh   Reset and re-run all migrations with multi-tenant support
  tenant:migrate:reset     Rollback all database migrations with multi-tenant support
  tenant:migrate:rollback  Rollback the last database migration with multi-tenant support
  tenant:migrate:status    Show the status of each migration with multi-tenant support
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~16 days

Total

3

Last Release

2801d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20291891?v=4)[zikloa](/maintainers/zikloa)[@zikloa](https://github.com/zikloa)

---

Top Contributors

[![loadmemo](https://avatars.githubusercontent.com/u/1792496?v=4)](https://github.com/loadmemo "loadmemo (8 commits)")

### Embed Badge

![Health badge](/badges/envive-tenant-migrate/health.svg)

```
[![Health](https://phpackages.com/badges/envive-tenant-migrate/health.svg)](https://phpackages.com/packages/envive-tenant-migrate)
```

PHPackages © 2026

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