定制 easy2dev/multi-tenant-wizard 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

easy2dev/multi-tenant-wizard

Composer 安装命令:

composer require 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

README 文档

README

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:

  1. Install the package via Composer:
composer require easy2dev/multi-tenant-wizard
  1. 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

php artisan tenant:database:create [database-name]
Parameter Description
database-name Required. The name of the specific tenant database to be create

Migrate a Specific Tenant Database

php artisan tenant:migrate [database-name] [--path=]
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

php artisan tenant:migrate:all [database-prefix] [--path=]
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

php artisan tenant:migrate:rollback [database-prefix] [--step=]
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

php artisan tenant:migrate:refresh [database-prefix] [--step=]
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

php artisan tenant:migrate:reset [database-prefix]
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

php artisan tenant:db:seed [database-prefix]
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.

Author

@SachinthaMadhawa

easy2dev/multi-tenant-wizard 适用场景与选型建议

easy2dev/multi-tenant-wizard 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 703 次下载、GitHub Stars 达 21, 最近一次更新时间为 2024 年 02 月 15 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 easy2dev/multi-tenant-wizard 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 easy2dev/multi-tenant-wizard 我们能提供哪些服务?
定制开发 / 二次开发

基于 easy2dev/multi-tenant-wizard 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 703
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 22
  • 点击次数: 21
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 21
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-15