PHP code example of genealabs / laravel-multi-tenant-manager
1. Go to this page and download the library: Download genealabs/laravel-multi-tenant-manager library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
genealabs / laravel-multi-tenant-manager example snippets
public function tools()
{
return [
// ...
new GeneaLabs\LaravelMultiTenantManager\NovaMultiTenantManager,
// ...
];
}
sh
php artisan tenant:create <name> <domain>
sh
php artisan tenant:alias <domain> <alias>
sh
php artisan tenant:delete <domain>
php artisan tenant:delete --all