User
class User extends User
Traits
Properties
$hidden | The attributes hidden from the model's JSON form. |
||
protected array | $casts | The attributes that should be casted to native types. |
|
protected array | $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.
The federated search models that the user can access
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.
Get the settings array.
Determines if the user is currently in Super User Mode.
Enables or disables Super User Mode if the user is a global admin.
Details
in
HasJsonAttributes at line 16
protected
setJsonAttr(string $key, mixed $value, string $attrs = 'attrs')
Set a dynamic JSON attribute.
in
HasJsonAttributes at line 38
protected mixed
getJsonAttr(string $key, mixed $default = null, string $attrs = 'attrs')
Get a dynamic JSON attribute.
at line 48
setEmailAttribute(string $value)
Set the email attribute and transform it to lowercase.
at line 58
BelongsToMany
projects()
The projects, this user is a member of.
at line 68
BelongsToMany
labelTrees()
The label trees, this user is a member of.
at line 78
BelongsTo
role()
The global role of this user.
at line 88
HasMany
apiTokens()
Api tokens of this user.
at line 98
BelongsToMany
federatedSearchModels()
The federated search models that the user can access
at line 108
bool
getIsGlobalAdminAttribute()
Determines if the user has the global admin role.
at line 117
checkCanBeDeleted()
Checks if the user can be deleted.
Throws an exception if not.
at line 137
setSettings(array $settings)
Set settings and merge them with the existing settings.
at line 156
mixed
getSettings(string $key, mixed $default = null)
Get settings of a specific key.
at line 166
array|null
getSettingsAttribute()
Get the settings array.
at line 176
bool
getIsInSuperUserModeAttribute()
Determines if the user is currently in Super User Mode.
at line 185
setIsInSuperUserModeAttribute(bool $value)
Enables or disables Super User Mode if the user is a global admin.