UserEntity
extends Model
in package
implements
UserEntity, HasAvatar, HasUrl
Uses
HasAvatarTrait, SoftDeletes
Class UserEntity.
Tags
Table of Contents
Interfaces
- UserEntity
- HasAvatar
- Interface HasAvatar.
- HasUrl
Properties
- $avatar_id : string|null
- $avatars : array<string|int, mixed>
- $deleted_at : string|null
- $detail : User
- $entity_type : string
- $gender : int
- $id : int
- $incrementing : mixed
- $is_featured : bool
- $name : string
- $possessive_gender : string
- $short_name : string
- $sort_type : string|null
- $timestamps : mixed
- $user_name : string
- $appends : array<string|int, string>
- $casts : array<string, string>
- $fillable : array<string|int, string>
Methods
- booted() : mixed
- detail() : MorphTo
- entityId() : int
- entityType() : string|null
- firstOrCreate() : UserEntity
- firstOrFail() : UserEntity
- getAvatarAttribute() : string|null
- getAvatarsAttribute() : array<string|int, mixed>|null
- getAvatarSizes() : array<string|int, mixed>
- getDetailAttribute() : mixed
- getPossessiveGenderAttribute() : string
- isDeleted() : bool
- toLink() : string|null
- toRouter() : string|null
- toUrl() : string|null
Properties
$avatar_id
public
string|null
$avatar_id
- Note: do not use this outside User Shortcut.
$avatars
public
array<string|int, mixed>
$avatars
$deleted_at
public
string|null
$deleted_at
$detail
public
User
$detail
$entity_type
public
string
$entity_type
$gender
public
int
$gender
$id
public
int
$id
$incrementing
public
mixed
$incrementing
= false
$is_featured
public
bool
$is_featured
$name
public
string
$name
$possessive_gender
public
string
$possessive_gender
$short_name
public
string
$short_name
$sort_type
public
string|null
$sort_type
- Note: do not use this outside User Shortcut.
$timestamps
public
mixed
$timestamps
= false
$user_name
public
string
$user_name
$appends
protected
array<string|int, string>
$appends
= ['possessive_gender']
$casts
protected
array<string, string>
$casts
= ['is_featured' => 'boolean']
$fillable
protected
array<string|int, string>
$fillable
= ['id', 'entity_type', 'user_name', 'name', 'avatar_id', 'avatar_type', 'avatar_file_id', 'is_featured', 'gender', 'is_searchable', 'short_name', 'deleted_at']
Methods
booted()
public
static booted() : mixed
detail()
public
detail() : MorphTo
Return values
MorphToentityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string|null
Return values
string|nullfirstOrCreate()
public
firstOrCreate(mixed $conditions) : UserEntity
Parameters
- $conditions : mixed
Return values
UserEntityfirstOrFail()
public
firstOrFail() : UserEntity
Return values
UserEntitygetAvatarAttribute()
public
getAvatarAttribute() : string|null
Return values
string|nullgetAvatarsAttribute()
public
getAvatarsAttribute() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetAvatarSizes()
public
getAvatarSizes() : array<string|int, mixed>
Return values
array<string|int, mixed>getDetailAttribute()
public
getDetailAttribute() : mixed
getPossessiveGenderAttribute()
public
getPossessiveGenderAttribute() : string
Return values
stringisDeleted()
public
isDeleted() : bool
Return values
booltoLink()
public
toLink() : string|null
Return values
string|nulltoRouter()
public
toRouter() : string|null
Return values
string|nulltoUrl()
public
toUrl() : string|null