Methods |
public
|
isAdmin()
Checks if a user is a superadmin.
Checks if a user is a superadmin.
return bool
|
#
|
public
|
isNormalOrTenant()
Checks if a user can act as a regular user.
Checks if a user can act as a regular user.
return bool
|
#
|
public
|
Groups()
Returns array of groups the user is related to.
Returns array of groups the user is related to.
return array
|
#
|
public
static
|
firstWhere(
Closure|string|array|Expression $column,
mixed $operator = null,
mixed $value = null,
string $boolean = "'and'",
): Builder|User
|
#
|
public
static
|
newModelQuery(): Builder|User
Get a new query builder that doesn't have any global scopes or eager loading.
Get a new query builder that doesn't have any global scopes or eager loading.
Overrides
|
#
|
public
static
|
newQuery(): Builder|User
Get a new query builder for the model's table.
Get a new query builder for the model's table.
Overrides
|
#
|
public
static
|
query(): Builder|User
Begin querying the model.
Begin querying the model.
Overrides
|
#
|
public
static
|
where(
Closure|string|array|Expression $column,
mixed $operator = null,
mixed $value = null,
string $boolean = "'and'",
): Builder|User
|
#
|
public
static
|
whereAnswer1($value): Builder|User
|
#
|
public
static
|
whereAnswer2($value): Builder|User
|
#
|
public
static
|
whereCapa($value): Builder|User
|
#
|
public
static
|
whereCreatedAt($value): Builder|User
|
#
|
public
static
|
whereCustomFields($value): Builder|User
|
#
|
public
static
|
whereDateFormat($value): Builder|User
|
#
|
public
static
|
whereDefaultTimeZone($value): Builder|User
|
#
|
public
static
|
whereDesktopNotifications($value): Builder|User
|
#
|
public
static
|
whereEmailNotification($value): Builder|User
|
#
|
public
static
|
whereFilesEnable($value): Builder|User
|
#
|
public
static
|
whereId($value): Builder|User
|
#
|
public
static
|
whereIdSubscription($value): Builder|User
|
#
|
public
static
|
whereIdTenant($value): Builder|User
|
#
|
public
static
|
whereIn(string $column, mixed $values, string $boolean = "'and'", bool $not = false): Builder|User
|
#
|
public
static
|
whereIsDisabled($value): Builder|User
|
#
|
public
static
|
whereLanguage($value): Builder|User
|
#
|
public
static
|
whereLastLogin($value): Builder|User
|
#
|
public
static
|
whereLastLoginNow($value): Builder|User
|
#
|
public
static
|
whereLoginsCount($value): Builder|User
|
#
|
public
static
|
whereName($value): Builder|User
|
#
|
public
static
|
wherePasswordResetHash($value): Builder|User
|
#
|
public
static
|
whereProperties($value): Builder|User
|
#
|
public
static
|
wherePublicId($value): Builder|User
|
#
|
public
static
|
whereQuestion1($value): Builder|User
|
#
|
public
static
|
whereQuestion2($value): Builder|User
|
#
|
public
static
|
whereRole($value): Builder|User
|
#
|
public
static
|
whereSipEnable($value): Builder|User
|
#
|
public
static
|
whereSipImpi($value): Builder|User
|
#
|
public
static
|
whereSipPassword($value): Builder|User
|
#
|
public
static
|
whereTimeFormat($value): Builder|User
|
#
|
public
static
|
whereTokensValidFromTimestamp($value): Builder|User
|
#
|
public
static
|
whereUUID($value): Builder|User
|
#
|
public
static
|
whereUpdatedAt($value): Builder|User
|
#
|
public
static
|
whereWriteSeparateLog($value): Builder|User
|
#
|
public
static
|
find(int|string $id, array|string $columns = ["'*'"]): Builder|User
|
#
|
public
static
|
count(string $columns = "'*'"): int
|
#
|
public
static
|
findOrFail(mixed $id, Closure|array|string $columns = ["'*'"], Closure $callback = null): Builder|User
|
#
|
public
static
|
first(array|string $columns = ["'*'"]): Builder|User
|
#
|
Properties |
public
|
int
|
$Id
Object primary key
|
#
|
public
|
string
|
$UUID
Unique identifier of the object
Unique identifier of the object
|
#
|
public
|
string
|
$Name
User name
|
#
|
public
|
string
|
$PublicId
User public ID, usually equals user's email address
User public ID, usually equals user's email address
|
#
|
public
|
int
|
$IdTenant
ID of the tetant a user relates to
ID of the tetant a user relates to
|
#
|
public
|
bool
|
$IsDisabled
Reserved for future use
|
#
|
public
|
int
|
$IdSubscription
@Deprecated since 9.7.0
|
#
|
public
|
int
|
$Role
User role from \Aurora\System\Enums\UserRole
User role from \Aurora\System\Enums\UserRole
|
#
|
public
|
DateTime
|
$LastLogin
Date at time of last login
Date at time of last login
|
#
|
public
|
string
|
$LastLoginNow
@Deprecated since 9.7.0
|
#
|
public
|
int
|
$LoginsCount
Stores the number of times user has logged in
Stores the number of times user has logged in
|
#
|
public
|
string
|
$Language
Interface language set for this user
Interface language set for this user
|
#
|
public
|
int
|
$TimeFormat
Time format set for this user
Time format set for this user
|
#
|
public
|
string
|
$DateFormat
Date format set for this user
Date format set for this user
|
#
|
public
|
string
|
$Question1
@Deprecated since 9.7.0
|
#
|
public
|
string
|
$Question2
@Deprecated since 9.7.0
|
#
|
public
|
string
|
$Answer1
@Deprecated since 9.7.0
|
#
|
public
|
string
|
$Answer2
@Deprecated since 9.7.0
|
#
|
public
|
bool
|
$SipEnable
@Deprecated since 9.7.0
|
#
|
public
|
string
|
$SipImpi
@Deprecated since 9.7.0
|
#
|
public
|
string
|
$SipPassword
@Deprecated since 9.7.0
|
#
|
public
|
bool
|
$DesktopNotifications
@Deprecated since 9.7.0
|
#
|
public
|
string
|
$Capa
@Deprecated since 9.7.0
|
#
|
public
|
string
|
$CustomFields
@Deprecated since 9.7.0
|
#
|
public
|
bool
|
$FilesEnable
@Deprecated since 9.7.0
|
#
|
public
|
string
|
$EmailNotification
@Deprecated since 9.7.0
|
#
|
public
|
string
|
$PasswordResetHash
@Deprecated since 9.7.0
|
#
|
public
|
bool
|
$WriteSeparateLog
If set to true, a separate log file is recorded for the user
If set to true, a separate log file is recorded for the user
|
#
|
public
|
string
|
$DefaultTimeZone
Default time zone set for this user
Default time zone set for this user
|
#
|
public
|
int
|
$TokensValidFromTimestamp
Timestamp the token is valid since
Timestamp the token is valid since
|
#
|
public
|
array
|
$Properties
Custom properties for use by other modules
Custom properties for use by other modules
|
#
|
public
|
string
|
$Note
User text note
|
#
|
public
|
Carbon|null
|
$CreatedAt
|
#
|
public
|
Carbon|null
|
$UpdatedAt
|
#
|
public
readonly
|
Collection<int, Group>
|
$Groups
|
#
|
public
readonly
|
int|null
|
$groups_count
|
#
|
public
readonly
|
mixed
|
$entity_id
|
#
|
public
readonly
|
Tenant|null
|
$parent
|
#
|