class Config

Constants

MORPH_NAME

MORPH_TYPE

Methods

static Repository
repository()

Get the config repository.

registrar()

Get the permission registrar.

static bool
teamsEnabled()

Determine if teams are enabled.

static void
ensureTeamsEnabled()

Ensure teams are enabled.

static string
teamModel()

Get the team model class.

static string
modelHasRolesTable()

Get the model_has_roles table name.

static string
modelHasPermissionsTable()

Get the model_has_permissions table name.

static string
roleHasPermissionsTable()

Get the role_has_permissions table name.

static string
rolesTable()

Get the roles table name.

static string
permissionsTable()

Get the permissions table name.

static string
morphKey()

Get the model morph key column.

static string
teamForeignKey()

Get the team foreign key column.

static string|null
defaultModel()

Get the default model class for raw permission assignments.

static string
defaultGuard()

Get the default auth guard name.

static string
roleModel()

Get the role model class.

static string
permissionModel()

Get the permission model class.

static bool
eventsEnabled()

Determine if permission events are enabled.

static bool
usePassportClientCredentials()

Determine if Passport client credentials should be checked.

static bool
displayRoleInException()

Determine if role names should be shown in exceptions.

static bool
displayPermissionInException()

Determine if permission names should be shown in exceptions.

static bool
wildcardPermissionsEnabled()

Determine if wildcard permissions are enabled.

static string
wildcardPermissionClass()

Get the wildcard permission class.

Details

at line 27
static protected Repository repository()

Get the config repository.

Return Value

Repository

at line 35
static protected PermissionRegistrar registrar()

Get the permission registrar.

Return Value

PermissionRegistrar

at line 43
static bool teamsEnabled()

Determine if teams are enabled.

Return Value

bool

at line 51
static void ensureTeamsEnabled()

Ensure teams are enabled.

Return Value

void

at line 63
static string teamModel()

Get the team model class.

Return Value

string

at line 79
static string modelHasRolesTable()

Get the model_has_roles table name.

Return Value

string

at line 87
static string modelHasPermissionsTable()

Get the model_has_permissions table name.

Return Value

string

at line 95
static string roleHasPermissionsTable()

Get the role_has_permissions table name.

Return Value

string

at line 103
static string rolesTable()

Get the roles table name.

Return Value

string

at line 111
static string permissionsTable()

Get the permissions table name.

Return Value

string

at line 119
static string morphKey()

Get the model morph key column.

Return Value

string

at line 127
static string teamForeignKey()

Get the team foreign key column.

Return Value

string

at line 137
static string|null defaultModel()

Get the default model class for raw permission assignments.

Return Value

string|null

at line 145
static string defaultGuard()

Get the default auth guard name.

Return Value

string

at line 155
static string roleModel()

Get the role model class.

Return Value

string

at line 165
static string permissionModel()

Get the permission model class.

Return Value

string

at line 173
static bool eventsEnabled()

Determine if permission events are enabled.

Return Value

bool

at line 181
static bool usePassportClientCredentials()

Determine if Passport client credentials should be checked.

Return Value

bool

at line 189
static bool displayRoleInException()

Determine if role names should be shown in exceptions.

Return Value

bool

at line 197
static bool displayPermissionInException()

Determine if permission names should be shown in exceptions.

Return Value

bool

at line 205
static bool wildcardPermissionsEnabled()

Determine if wildcard permissions are enabled.

Return Value

bool

at line 215
static string wildcardPermissionClass()

Get the wildcard permission class.

Return Value

string