PHPackages                             quicktech/tenant-migrate-laravel - 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. quicktech/tenant-migrate-laravel

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

quicktech/tenant-migrate-laravel
================================

Copy of A2Way Laravel Tenant Migrate

1.2.3(10y ago)062PHPPHP &gt;=5.4.0

Since Nov 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/marcelorl/laravel-tenant-migrate)[ Packagist](https://packagist.org/packages/quicktech/tenant-migrate-laravel)[ RSS](/packages/quicktech-tenant-migrate-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

A2Way Laravel Tenant Migrate
============================

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

A2Way Laravel Tenant Migrate is a Laravel package that can be used to migrate different databases without editing database configuration files.

This is specially useful for SaaS (Software as a Service) web applications that stores data of each tenant in different databases. Migrating databases like that can be very hard because you might have to change your database configuration for each tenant database. As you can imagine, this is not a very scalable solution.

A2Way Laravel Tenant Migrate can help you overcome this problem.

Commands Available
------------------

[](#commands-available)

Installing A2Way Laravel Tenant Migrate on your Laravel project will add following commands to your artisan tool.

- **migrate:tenant** (connection-name) (database-name)
- **migrate:tenant:install** (connection-name) (database-name)
- **migrate:tenant:refresh** (connection-name) (database-name)
- **migrate:tenant:reset** (connection-name) (database-name)
- **migrate:tenant:rollback** (connection-name) (database-name)

Each of above commands will perform the task of their cousin commands that has the similar name but for “tenant”. For an example, **migrate:tenant:refresh myConnection myDatabase** will run **migrate:refresh** on **myDatabase**, accessing it through connection details given in **myConnection**.

An example of usage through a controller is:

```
Artisan::call('migrate:tenant', [
	'connection-name' => 'mysql',
	'database-name'     => 'test',
	'--path' => 'database/migrations/tenant'
]);

```

Installing
----------

[](#installing)

1. Issue the following command:

    composer require a2way/laravel-tenant-migrate 1.\*
2. Then add the following line to your Laravel app’s “app/config/app.php” file’s “providers” sub-array.

    A2way\\LaravelTenantMigrate\\LaravelTenantMigrateServiceProvider
3. Check the installation by issuing "php artisan command". If you are able to see the above commands in your list of commands, installation was successful.

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

[](#contributing)

Please read  before contributing.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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 ~78 days

Recently: every ~110 days

Total

7

Last Release

3736d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/71daf7690921474db32d4fe5c956a47a882627b0e81bbdf224d8f3aa599be25b?d=identicon)[marcelorl](/maintainers/marcelorl)

---

Top Contributors

[![budhajeewa](https://avatars.githubusercontent.com/u/451634?v=4)](https://github.com/budhajeewa "budhajeewa (16 commits)")[![marcelorl](https://avatars.githubusercontent.com/u/1603398?v=4)](https://github.com/marcelorl "marcelorl (1 commits)")

---

Tags

laravela2way

### Embed Badge

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

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

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)

PHPackages © 2026

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