Download the PHP package easy2dev/multi-tenant-wizard without Composer
On this page you can find all versions of the php package easy2dev/multi-tenant-wizard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download easy2dev/multi-tenant-wizard
More information about easy2dev/multi-tenant-wizard
Files in easy2dev/multi-tenant-wizard
Package multi-tenant-wizard
Short Description 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.
License MIT
Informations about the package multi-tenant-wizard
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
- 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
To install Easy2Dev Laravel Tenant Migrate, follow these steps:
-
Install the package via Composer:
- Verify the installation by running
php artisan
. If the package commands are listed, the installation was successful.
Usage
Easy2Dev Laravel Tenant Migrate provides the following artisan commands for managing tenant databases:
Create Postgresql Database
Parameter | Description |
---|---|
database-name |
Required. The name of the specific tenant database to be create |
Migrate a Specific Tenant Database
Parameter | Description |
---|---|
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
Parameter | Description |
---|---|
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
Parameter | Description |
---|---|
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
Parameter | Description |
---|---|
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
Parameter | Description |
---|---|
database-prefix |
Required. The common prefix shared by the names of the tenant databases to be reset |
Seed Data for All Tenant Databases
Parameter | Description |
---|---|
database-prefix |
Required. The common prefix shared by the names of the tenant databases where data will be seeded |
License
This project is licensed under the MIT License.
Acknowledgments
Special thanks to our contributors and supporters for their valuable contributions to this project.