MetaFox

StickerRecent extends Model
in package
implements Entity Uses HasEntity, HasFactory, HasUserMorph

Class StickerRecent.

Tags
mixin

Builder

Table of Contents

Interfaces

Entity
Interface Entity.

Constants

ENTITY_TYPE  = 'sticker_recent'
MAXIMUM_RECENT_STICKER  = 50

Properties

$created_at  : string
$id  : int
$sticker_id  : int
$updated_at  : string
$user_id  : int
$user_type  : string
$fillable  : array<string|int, string>
$table  : mixed

Methods

entityId()  : int
entityType()  : string
factory()  : StickerRecentFactory
getUserAttribute()  : mixed
getUserEntityAttribute()  : mixed
isUser()  : bool
check if $user is the user (creator) of entity.
moduleName()  : string
user()  : MorphTo
userEntity()  : BelongsTo
userId()  : int
userType()  : string
newFactory()  : StickerRecentFactory

Constants

MAXIMUM_RECENT_STICKER

public mixed MAXIMUM_RECENT_STICKER = 50

Properties

$fillable

protected array<string|int, string> $fillable = ['sticker_id', 'user_id', 'user_type']

Methods

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

factory()

public static factory(mixed $parameters) : StickerRecentFactory
Parameters
$parameters : mixed
Return values
StickerRecentFactory

getUserEntityAttribute()

public getUserEntityAttribute() : mixed

isUser()

check if $user is the user (creator) of entity.

public isUser(User $user) : bool
Parameters
$user : User
Return values
bool

moduleName()

public moduleName() : string
Return values
string

userEntity()

public userEntity() : BelongsTo
Return values
BelongsTo

userType()

public userType() : string
Return values
string

newFactory()

protected static newFactory() : StickerRecentFactory
Return values
StickerRecentFactory

        
On this page

Search results