MetaFox

UserEntity extends Model
in package
implements UserEntity, HasAvatar, HasUrl Uses HasAvatarTrait, SoftDeletes

Class UserEntity.

Tags
mixin

Builder

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

$incrementing

public mixed $incrementing = false

$possessive_gender

public string $possessive_gender

$sort_type

public string|null $sort_type
  • Note: do not use this outside User Shortcut.

$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

detail()

public detail() : MorphTo
Return values
MorphTo

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string|null
Return values
string|null

getAvatarAttribute()

public getAvatarAttribute() : string|null
Return values
string|null

getAvatarsAttribute()

public getAvatarsAttribute() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getAvatarSizes()

public getAvatarSizes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDetailAttribute()

public getDetailAttribute() : mixed

getPossessiveGenderAttribute()

public getPossessiveGenderAttribute() : string
Return values
string

isDeleted()

public isDeleted() : bool
Return values
bool
public toLink() : string|null
Return values
string|null

toRouter()

public toRouter() : string|null
Return values
string|null

toUrl()

public toUrl() : string|null
Return values
string|null

        
On this page

Search results