Tenancy Bootstrappers
These are the classes that do the magic. When tenancy is initialized, TenancyBootstrappers are executed, making Laravel tenant-aware.
All Tenancy Bootstrappers must implement the Stancl\Tenancy\Contracts\TenancyBootstrapper interface.
When tenancy is initialized, the start() method on the enabled bootstrappers is called.
Conversely, when tenancy is ended, the end() method is called.
In the tenancy.bootstrappers configuration, bootstrappers have an alias configured (e.g. database) that is used by events to say which bootstrappers are prevented.