Skip to content

Interface: Subject ​

Defined in: packages/core/src/types.ts:26

Anything that can hold roles and permissions — usually a user, but can be any model (e.g. an API client, a service account). Equivalent to Laravel's model_type + model_id.

Properties ​

PropertyTypeDefined in
idIdpackages/core/src/types.ts:28
typestringpackages/core/src/types.ts:27

Released under the MIT License. Inspired by spatie/laravel-permission.