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
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'activity_history'
Properties
$content
public
string
$content
$created_at
public
mixed
$created_at
$extra
public
mixed
$extra
$feed_id
public
int
$feed_id
$id
public
int
$id
$phrase
public
mixed
$phrase
$fillable
protected
array<string|int, string>
$fillable
= ['feed_id', 'user_id', 'user_type', 'content', 'phrase', 'extra', 'created_at']
$table
protected
mixed
$table
= 'activity_histories'
Methods
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfeed()
public
feed() : BelongsTo
Return values
BelongsTogetUserAttribute()
public
getUserAttribute() : mixed
getUserEntityAttribute()
public
getUserEntityAttribute() : mixed
isUser()
check if $user is the user (creator) of entity.
public
isUser(User $user) : bool
Parameters
- $user : User
Return values
boolmoduleName()
public
moduleName() : string
Return values
stringuser()
public
user() : MorphTo
Return values
MorphTouserEntity()
public
userEntity() : BelongsTo
Return values
BelongsTouserId()
public
userId() : int
Return values
intuserType()
public
userType() : string