MetaFox

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

Class ActivityHistory.

Table of Contents

Interfaces

Entity
Interface Entity.

Constants

ENTITY_TYPE  = 'activity_history'

Properties

$content  : string
$created_at  : mixed
$extra  : mixed
$feed_id  : int
$id  : int
$phrase  : mixed
$fillable  : array<string|int, string>
$table  : mixed

Methods

entityId()  : int
entityType()  : string
feed()  : BelongsTo
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

Constants

Properties

$fillable

protected array<string|int, string> $fillable = ['feed_id', 'user_id', 'user_type', 'content', 'phrase', 'extra', 'created_at']

Methods

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

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

        
On this page

Search results