Skip to content
Manage tenants and their settings in Laravel Nova.
Vue PHP HTML Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
config
dist
resources
routes
src
.gitattributes
.gitignore
README.md
composer.json
package.json
webpack.mix.js

README.md

Nova Multi-Tenant Manager

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

You can’t perform that action at this time.