Reaction
extends Model
in package
implements
Entity
Uses
HasFactory, HasEntity
Class Reaction.
Tags
Table of Contents
Interfaces
- Entity
- Interface Entity.
Constants
- ENTITY_TYPE = 'preaction'
- IS_ACTIVE = 1
- IS_DEFAULT = 1
Properties
- $color : string
- $created_at : string
- $icon : string|null
- $icon_mobile : string|null
- $icon_path : string
- $is_active : int
- $is_default : int
- $ordering : int
- $server_id : string
- $title : string
- $updated_at : string
- $fillable : mixed
- $table : mixed
Methods
- entityId() : int
- entityType() : string
- factory() : ReactionFactory
- getIconAttribute() : string
- getIconMobileAttribute() : string|null
- getTitleAttribute() : string
- moduleName() : string
- newFactory() : ReactionFactory
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'preaction'
IS_ACTIVE
public
mixed
IS_ACTIVE
= 1
IS_DEFAULT
public
mixed
IS_DEFAULT
= 1
Properties
$color
public
string
$color
$created_at
public
string
$created_at
$icon
public
string|null
$icon
$icon_mobile
public
string|null
$icon_mobile
$icon_path
public
string
$icon_path
$is_active
public
int
$is_active
$is_default
public
int
$is_default
$ordering
public
int
$ordering
$server_id
public
string
$server_id
$title
public
string
$title
$updated_at
public
string
$updated_at
$fillable
protected
mixed
$fillable
= ['title', 'is_active', 'icon_path', 'color', 'server_id', 'ordering', 'is_default']
$table
protected
mixed
$table
= 'like_reactions'
Methods
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory(mixed $parameters) : ReactionFactory
Parameters
- $parameters : mixed
Return values
ReactionFactorygetIconAttribute()
public
getIconAttribute() : string
Return values
stringgetIconMobileAttribute()
public
getIconMobileAttribute() : string|null
Return values
string|nullgetTitleAttribute()
public
getTitleAttribute(string $value) : string
Parameters
- $value : string
Return values
stringmoduleName()
public
moduleName() : string
Return values
stringnewFactory()
protected
static newFactory() : ReactionFactory