Resolves a {@see Partner} by its primary key — the lookup behind impersonation and runtime-context construction (e.g. rehydrating the acting partner from a session-stored id).
The SDK binds {@see \LaravelUi5\Sdk\Partners\DefaultPartnerResolver}
(a straight Partner::find()) by default. Rebind a concrete resolver
in your service provider to add scope restrictions — for example
limiting which partners may be impersonated:
$this->app->singleton(PartnerResolverInterface::class, MyResolver::class);
To lock impersonation down entirely, rebind
{@see \LaravelUi5\Sdk\Partners\NullPartnerResolver}, which always
returns null.
| Methods | ||
|---|---|---|
public
|
resolveById(int $id): ?Partner
|
# |