genealabs / nova-multi-tenant-manager
A Laravel Nova package to manage multi-tenants.
Fund package maintenance!
mikebronner
Installs: 1 065
Dependents: 0
Suggesters: 0
Security: 0
Stars: 21
Watchers: 4
Forks: 6
Open Issues: 3
Language:Vue
Requires
- hyn/multi-tenant: *
- illuminate/console: ^10.0|^11.0
- illuminate/database: ^10.0|^11.0
- illuminate/http: ^10.0|^11.0
- illuminate/routing: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
- laravel/nova: ^4.0
Requires (Dev)
- orchestra/testbench: ^8.0
- orchestra/testbench-browser-kit: ^8.0
- orchestra/testbench-dusk: ^8.0
- php-coveralls/php-coveralls: ^2.2
- phpmd/phpmd: ^2.7
- phpunit/phpunit: ^10.0
- squizlabs/php_codesniffer: ^3.4
- symfony/thanks: ^1.2
This package is auto-updated.
Last update: 2024-12-11 17:22:23 UTC
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\NovaMultiTenantManager\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