This package are created for use with Spatie's Laravel Multitenancy.
composer require rocketslab/multitenancy-extensions
You can publish default configuration.
php artisan vendor:publish --provider="RocketsLab\MultitenancyExtensions\MultitenancyExtensionsServiceProvider" --tag="config"
After configuring the spatie/laravel-tenancy
Tenant model. You can
activate automatic database creation. To do this, include the ShoudCreateDatabase
trait
to Tenant model.