This is the documentation for v2.
You can switch versions in the menu on the left/at the top.
Check your current version with the following command:
composer show spatie/laravel-multitenancy
When making a tenant the current one, the tasks inside the switch_tenant_tasks key of the multitenancy config file will be executed. Inside these tasks you can perform logic to configure the environment for the tenant that is being made the current one.
The philosophy of this package is that it should only provide the bare essentials to enable multitenancy. That's why it only provides two tasks out of the box. These tasks serve as example implementations.