mamdouhkhaled/tenancy-modules
最新稳定版本:v2.0.0
Composer 安装命令:
composer require mamdouhkhaled/tenancy-modules
包简介
Connect Laravel Tenancy with Laravel Modules
README 文档
README
- Create laravel app if not already installed
- packages you Are needed to install
composer require mamdouhkhaled/tenancy-modules
Create Table for manage Modules with Tenancy
php artisan tenancy:install // fresh install only
php artisan migrate
Published Configuration
php artisan vendor:publish --tag=tenancymodules
Enable / Disable modules Commands
php artisan module:tenant-enable --tenant={{tenant-id}} // enable all modules for this tenant
php artisan module:tenant-enable {{module_name}} --tenant={{tenant-id}} // enable `module_name` modules for this tenant
php artisan module:tenant-disable --tenant={{tenant-id}} // enable all modules for this tenant
php artisan module:tenant-disable {{module_name}} --tenant={{tenant-id}} // enable `module_name` modules for this tenant
Migration / rollback Commands
php artisan module:tenant-migrate --tenants={{tenant-id}}// tenant is comma separated
php artisan module:tenant-migrate --tenants={{tenant-id}} {{module}}
php artisan module:tenant-migrate-rollback --tenants={{tenant-id}}
php artisan module:tenant-migrate-rollback --tenants={{tenant-id}} {{module}}
Seed Commands
this Command Run {module}TenantDatabaseSeeder
php artisan module:tenant-seed --tenants={{tenant-id}}// tenant is comma separated
php artisan module:tenant-seed --tenants={{tenant-id}} {{module}}
Route
as tenant way
Contributing
Thank you for considering contributing to the Laravel Tenancy Modules Package!
License
The Laravel framework is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 124
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-07