User
class User extendsUser
Traits
Properties
$hidden | The attributes hidden from the model's JSON form. | ||
protectedarray | $casts | The attributes that should be casted to native types. | |
protectedarray | $dates | The attributes that should be mutated to dates. |
Methods
Set a dynamic JSON attribute.
Get a dynamic JSON attribute.
Set the email attribute and transform it to lowercase.
The projects, this user is a member of.
The label trees, this user is a member of.
The global role of this user.
Api tokens of this user.
Determines if the user has the global admin role.
Checks if the user can be deleted.
Set settings and merge them with the existing settings.
Get settings of a specific key.
Determines if the user is currently in Super User Mode.
Enables or disables Super User Mode if the user is a global admin.
Details
inHasJsonAttributesat line16
protected
setJsonAttr(string$key,mixed$value,string$attrs ='attrs')
Set a dynamic JSON attribute.
inHasJsonAttributesat line38
protectedmixed
getJsonAttr(string$key,mixed$default =null,string$attrs ='attrs')
Get a dynamic JSON attribute.
at line47
setEmailAttribute(string$value)
Set the email attribute and transform it to lowercase.
at line57
BelongsToMany
projects()
The projects, this user is a member of.
at line67
BelongsToMany
labelTrees()
The label trees, this user is a member of.
at line77
BelongsTo
role()
The global role of this user.
at line87
@return
apiTokens()
Api tokens of this user.
at line97
bool
getIsGlobalAdminAttribute()
Determines if the user has the global admin role.
at line106
checkCanBeDeleted()
Checks if the user can be deleted.
Throws an exception if not.
at line126
setSettings(array$settings)
Set settings and merge them with the existing settings.
at line143
mixed
getSettings(string$key,mixed$default =null)
Get settings of a specific key.
at line153
bool
getIsInSuperUserModeAttribute()
Determines if the user is currently in Super User Mode.
at line162
setIsInSuperUserModeAttribute(bool$value)
Enables or disables Super User Mode if the user is a global admin.