PHP code example of rocketslab / laravel-multitenancy-extensions
1. Go to this page and download the library: Download rocketslab/laravel-multitenancy-extensions 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/ */
rocketslab / laravel-multitenancy-extensions example snippets
//...
'switch_tenant_tasks' => [
\RocketsLab\MultitenancyExtensions\Tasks\ActivateDeafultDatabase::class,
\Spatie\Multitenancy\Tasks\SwitchTenantDatabaseTask::class,
// ... other tasks
],
//...
shell
php artisan vendor:publish --provider="RocketsLab\MultitenancyExtensions\MultitenancyExtensionsServiceProvider" --tag="config"
shell
php artisan landlord:migrate