genealabs / laravel-multi-tenant-manager
A Laravel package to manage multi-tenants.
Fund package maintenance!
mikebronner
0.1.0
2021-08-14 18:07 UTC
Requires
- hyn/multi-tenant: ^5.7
- illuminate/console: ^8.0
- illuminate/database: ^8.0
- illuminate/http: ^8.0
- illuminate/routing: ^8.0
- illuminate/support: ^8.0
Requires (Dev)
- genealabs/php-coding-standards: dev-main@dev
README
Manage tenants and their settings in Laravel Nova.
Requirements
- PHP >= 7.1.3
- Laravel 8.* (https://laravel.com)
- Laravel Nova 3.* (https://nova.laravel.com)
- Laravel Tenancy 5.7.* (https://laravel-tenancy.com)
Installation
-
composer require "genealabs/nova-multi-tenant-manager:*"
- Add the tool to your
app\Providers\NovaServiceProvider.php
:public function tools() { return [ // ... new GeneaLabs\LaravelMultiTenantManager\NovaMultiTenantManager, // ... ]; }
Planned Features
- Configurable settings fields (implemented, needs documentation).
- Automatic integration with
genealabs/laravel-governor
. - Extendible classes to allow custom integration with 3rd-party packages.
- Integrate CLI commands into tenancy namespace.
- Add unit tests.
Usage
CLI Commands
tenant:create
Creates a tenant with the provided domain name.
php artisan tenant:create <name> <domain>
tenant:alias
Creates an alias for an existing tenant with the provided domain name.
php artisan tenant:alias <domain> <alias>
tenant:delete
Deletes tenant by the provided domain, or delete all tenants.
php artisan tenant:delete <domain> php artisan tenant:delete --all