Resolves the {@see TenantInterface} for the current request — the only seam in the tenancy surface.
The SDK binds a working default ({@see \LaravelUi5\Sdk\Tenancy\DefaultTenantResolver},
which serves a fictional standalone operator), so there is no "unbound"
state. Rebind your own resolver in AppServiceProvider::register() to
surface a real operator identity:
$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
|
# |