Resolves an ability declaration to its sync-assigned DB id
(sdk_abilities.id) — the structural lookup that callers used to each do with
their own raw sdk_artifacts ⋈ sdk_abilities query.
The index holds every ability type (Access / Act / See / Read) for every artifact, read with {@see abilityId()}. Whether an artifact is gated at all is {@see \LaravelUi5\Sdk\Security\Grants\ArtifactAccessPolicy}'s question, answered from the declaration — the index only knows ids.
Implemented by both registries (the established dev/prod split):
Resolves identity, never a grant — the answer is "what id is this ability", not "may this actor hold it". See https://laravelui5.com/sdk/security/resolution-engine
| Methods | ||
|---|---|---|
public
|
abilityId(string $namespace, AbilityType $type, string $ability): ?int
|
# |
public
|
readAbilities(): array<string, array<string, string>>
|
# |
public
|
readAbilitiesFor(string $appNamespace): array<string, string>
|
# |