Interface LaravelUi5\Sdk\Security\Contracts\AbilityIndexInterface

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; {@see accessAbilityId()} is the first, convenience reader (the app-level gate), {@see abilityId()} the general one.

Implemented by both registries (the established dev/prod split):

  • {@see \LaravelUi5\Sdk\Platform\CachedRegistry} reads the baked {@see \LaravelUi5\Sdk\Security\AbilityRef} map → zero request-time queries.
  • {@see \LaravelUi5\Sdk\Platform\SdkRegistry} (dev, no baked ids) resolves lazily and memoises per request.

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