Resolves the {@see TenantInterface} for the current request — the only seam in the tenancy surface.
The SDK binds a working default ({@see \LaravelUi5\Sdk\Installation\DefaultTenantResolver},
which follows the operator's operator_for), so there is no "unbound"
state. Rebind your own resolver in AppServiceProvider::register() to
find the tenant another way:
$this->app->singleton(TenantResolverInterface::class, MyTenantResolver::class);
A multi-tenant host's tenancy package switches the database by request domain upstream of resolution; this seam then reads identity from whichever DB the request is already connected to. The contract is craftable against no particular Tenant implementation.
| Methods | ||
|---|---|---|
public
|
resolve(): TenantInterface
|
# |