extends |
Model |
|---|
A row in sdk_delegations — one impersonation grant (F3 /
sdk-impersonation-v0.9). It grants the delegate (B) the right to act as the
target (A) for the window [valid_from, valid_until].
Lifecycle: add · edit · delineate, never delete (audit-preserving). Edit
adjusts note; delineate shortens valid_until; valid_from is immutable
once set. Overlap of active windows for the same (delegate, target) pair is
prohibited — enforced by {@see \LaravelUi5\Sdk\Impersonation\ImpersonationService},
not a DB constraint.
| Methods | ||
|---|---|---|
public
|
scopeActiveAt(Builder $query, ?Carbon $at = null): Builder
|
# |
public
|
delegate(): BelongsTo
|
# |
public
|
target(): BelongsTo
|
# |
public
|
grantedBy(): BelongsTo
|
# |
| Properties | |||
|---|---|---|---|
public
|
int
|
$id
|
# |
public
|
int
|
$delegate_partner_id
|
# |
public
|
int
|
$target_partner_id
|
# |
public
|
int
|
$granted_by
|
# |
public
|
string|null
|
$note
|
# |
public
|
Carbon
|
$valid_from
|
# |
public
|
Carbon
|
$valid_until
|
# |
public
|
Carbon
|
$created_at
|
# |
public
|
Carbon
|
$updated_at
|
# |
public
readonly
|
Partner
|
$delegate
|
# |
public
readonly
|
Partner
|
$target
|
# |
public
readonly
|
Partner
|
$grantedBy
|
# |