PHPackages                             easy2dev/multi-tenant-wizard - 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. [Database &amp; ORM](/categories/database)
4. /
5. easy2dev/multi-tenant-wizard

ActiveLibrary[Database &amp; ORM](/categories/database)

easy2dev/multi-tenant-wizard
============================

Easy2Dev Laravel Tenant Migrate is a Laravel package designed to simplify database migration for multi-tenant applications, particularly those employing PostgreSQL databases. This package streamlines the migration process for Software as a Service (SaaS) web applications where tenant data is stored in separate databases. It eliminates the need to manually adjust database configuration files for each tenant, offering a scalable solution for database management.

v1.2.2(2y ago)21622↓50%3[2 issues](https://github.com/sachintha00/Multi-Tenant-Wizard/issues)MITPHP

Since Feb 15Pushed 1y agoCompare

[ Source](https://github.com/sachintha00/Multi-Tenant-Wizard)[ Packagist](https://packagist.org/packages/easy2dev/multi-tenant-wizard)[ RSS](/packages/easy2dev-multi-tenant-wizard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

Easy2Dev Laravel Tenant Migrate
===============================

[](#easy2dev-laravel-tenant-migrate)

Easy2Dev Laravel Tenant Migrate is a Laravel package designed to simplify database migration for multi-tenant applications, particularly those employing PostgreSQL databases.

This package streamlines the migration process for Software as a Service (SaaS) for Laravel web applications where tenant data is stored in separate databases. It eliminates the need to manually adjust database configuration files for each tenant, offering a scalable solution for database management.

Features
--------

[](#features)

- Seamless migration of tenant databases without manual configuration adjustments.
- Support for multiple migration commands tailored for tenant databases.
- Simultaneous migration of multiple tenant databases using database prefixes.
- Compatibility with Laravel artisan commands for streamlined workflow integration.

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

[](#installation)

To install Easy2Dev Laravel Tenant Migrate, follow these steps:

1. Install the package via Composer:

```
composer require easy2dev/multi-tenant-wizard

```

2. Verify the installation by running `php artisan`. If the package commands are listed, the installation was successful.

Usage
-----

[](#usage)

Easy2Dev Laravel Tenant Migrate provides the following artisan commands for managing tenant databases:

#### Create Postgresql Database

[](#create-postgresql-database)

```
php artisan tenant:database:create [database-name]
```

ParameterDescription`database-name`**Required**. The name of the specific tenant database to be create#### Migrate a Specific Tenant Database

[](#migrate-a-specific-tenant-database)

```
php artisan tenant:migrate [database-name] [--path=]
```

ParameterDescription`database-name`**Required**. The name of the specific tenant database to be migrate`--path=`**Optional**. The path to the schemas to be migrated (Default location is /database/migrations/tenant)#### Migrate All Tenant Database

[](#migrate-all-tenant-database)

```
php artisan tenant:migrate:all [database-prefix] [--path=]
```

ParameterDescription`database-prefix`**Required**. The common prefix shared by the names of the tenant databases to be migrated`--path=`**Optional**. The path to the schemas to be migrated (Default location is /database/migrations/tenant)#### Migrate Rollback All Tenant Databases

[](#migrate-rollback-all-tenant-databases)

```
php artisan tenant:migrate:rollback [database-prefix] [--step=]
```

ParameterDescription`database-prefix`**Required**. The common prefix shared by the names of the tenant databases to be rollback`--steps=`**Optional**. Specifies the number of migration steps to roll back.#### Migrate Refresh All Tenant Databases

[](#migrate-refresh-all-tenant-databases)

```
php artisan tenant:migrate:refresh [database-prefix] [--step=]
```

ParameterDescription`database-prefix`**Required**. The common prefix shared by the names of the tenant databases to be refresh`--path=`**Optional**. The path to the schemas to be migrated (Default location is /database/migrations/tenant)#### Migrate Reset All Tenant Databases

[](#migrate-reset-all-tenant-databases)

```
php artisan tenant:migrate:reset [database-prefix]
```

ParameterDescription`database-prefix`**Required**. The common prefix shared by the names of the tenant databases to be reset#### Seed Data for All Tenant Databases

[](#seed-data-for-all-tenant-databases)

```
php artisan tenant:db:seed [database-prefix]
```

ParameterDescription`database-prefix`**Required**. The common prefix shared by the names of the tenant databases where data will be seededLicense
-------

[](#license)

This project is licensed under the MIT License.

Acknowledgments
---------------

[](#acknowledgments)

Special thanks to our contributors and supporters for their valuable contributions to this project.

Author
------

[](#author)

[@SachinthaMadhawa](https://www.github.com/sachintha00)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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

Total

4

Last Release

820d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8aefda7155e5842e19d20fd839c900329e5b4134fa53f6d87c129a179e56fdb2?d=identicon)[diaryofthedev](/maintainers/diaryofthedev)

---

Top Contributors

[![sachintha00](https://avatars.githubusercontent.com/u/80079235?v=4)](https://github.com/sachintha00 "sachintha00 (10 commits)")

---

Tags

artisanartisan-commandartisan-commandslaravel-packagelaravelartisanlaravelmultitenantmultitenancymultitenant

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/easy2dev-multi-tenant-wizard/health.svg)

```
[![Health](https://phpackages.com/badges/easy2dev-multi-tenant-wizard/health.svg)](https://phpackages.com/packages/easy2dev-multi-tenant-wizard)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11120.2M21](/packages/anourvalar-eloquent-serialize)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[abbasudo/laravel-purity

elegant way to add filter and sort in laravel

514330.5k1](/packages/abbasudo-laravel-purity)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)[dragon-code/laravel-deploy-operations

Performing any actions during the deployment process

240173.5k2](/packages/dragon-code-laravel-deploy-operations)[stayallive/laravel-eloquent-observable

Register Eloquent model event listeners just-in-time directly from the model.

2928.9k7](/packages/stayallive-laravel-eloquent-observable)

PHPackages © 2026

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