User
class User extends User
Traits
Properties
$hidden | The attributes hidden from the model's JSON form. |
from User | |
protected array | $casts | The attributes that should be casted to native types. |
from User |
Methods
Set a dynamic JSON attribute.
Get a dynamic JSON attribute.
The federated search models that the user can access
Determines if the user is currently in Super User Mode.
Enables or disables Super User Mode if the user is a global admin.
Determines if the user can review e.g. new user registrations (without being super user).
Get the available storage quota of the user in bytes.
Set the allowed user storage quota.
Get the used storage quota of the user in bytes.
Get the remaining storage quota of the user in bytes.
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.
in
User at line 45
setEmailAttribute(string $value)
Set the email attribute and transform it to lowercase.
in
User at line 55
BelongsToMany
projects()
The projects, this user is a member of.
in
User at line 65
BelongsToMany
labelTrees()
The label trees, this user is a member of.
in
User at line 75
BelongsTo
role()
The global role of this user.
in
User at line 85
HasMany
apiTokens()
Api tokens of this user.
in
User at line 95
BelongsToMany
federatedSearchModels()
The federated search models that the user can access
in
User at line 105
bool
getIsGlobalAdminAttribute()
Determines if the user has the global admin role.
in
User at line 114
checkCanBeDeleted()
Checks if the user can be deleted.
Throws an exception if not.
in
User at line 134
setSettings(array $settings)
Set settings and merge them with the existing settings.
in
User at line 153
mixed
getSettings(string $key, mixed $default = null)
Get settings of a specific key.
in
User at line 163
array|null
getSettingsAttribute()
Get the settings array.
in
User at line 173
bool
getIsInSuperUserModeAttribute()
Determines if the user is currently in Super User Mode.
in
User at line 182
setIsInSuperUserModeAttribute(bool $value)
Enables or disables Super User Mode if the user is a global admin.
in
User at line 195
bool
getCanReviewAttribute()
Determines if the user can review e.g. new user registrations (without being super user).
in
User at line 207
setCanReviewAttribute(bool $value)
Enables or disables the ability to review.
at line 31
int
getStorageQuotaAvailableAttribute()
Get the available storage quota of the user in bytes.
at line 41
setStorageQuotaAvailableAttribute($value)
Set the allowed user storage quota.
@@param int|null $value
at line 51
int
getStorageQuotaUsedAttribute()
Get the used storage quota of the user in bytes.
at line 67
int
getStorageQuotaRemainingAttribute()
Get the remaining storage quota of the user in bytes.