genealabs/nova-multi-tenant-manager

A Laravel Nova package to manage multi-tenants.

Fund package maintenance!
mikebronner

Installs: 964

Dependents: 0

Suggesters: 0

Security: 0

Stars: 21

Watchers: 3

Forks: 5

Open Issues: 3

Language:Vue

0.5.1 2021-03-27 23:12 UTC

README

Manage tenants and their settings in Laravel Nova.

Multi-Tenant Manager for Laravel Nova masthead image.

Requirements

Installation

  1. composer require "genealabs/nova-multi-tenant-manager:*"
  2. 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

Nova Tools

Tenants Management

Screen Shot 2019-05-11 at 5 19 20 PM

Tenant Settings

Screen Shot 2019-05-11 at 5 19 07 PM